Wiley.com
Print this page Share

JavaScript 24-Hour Trainer

ISBN: 978-0-470-64783-7
Paperback
456 pages
December 2010
JavaScript 24-Hour Trainer (0470647833) cover image
This title is out-of-print and not currently available for purchase from this site.

Preface xix

Part I: Introduction to JavaScript

Lesson 1: Adding JavaScript to a Web Page 3

Lesson 2: Variables and JavaScript Syntax 9

Lesson 3: Functions 25

Lesson 4: Making Decisions 35

Lesson 5: Loops 49

Lesson 6: Scope 57

Lesson 7: Objects and Built-In Types 65

Lesson 8: Custom Objects 83

Lesson 9: Prototypes and Inheritance (The Function Object) 91

Part II: Programming the Browser

Lesson 10: The window Object 101

Lesson 11: Scripting Windows 109

Lesson 12: Scripting Frames 121

Lesson 13: The Document Object Model 129

Lesson 14: Adding HT ML with JavaScript 137

Lesson 15: Modifying Element Style 147

Lesson 16: Introduction to Events 155

Lesson 17: Assigning Event Handlers with HT ML Attributes 161

Lesson 18: Using Early DO M Event Handlers 173

Lesson 19: Using Standard DO M and IE Event Handlers 185

Lesson 20: Writing Cross-Browser Event Handlers 195

Lesson 21: The Standard Event Object 205

Lesson 22: Internet Explorer’s Event Object 217

Lesson 23: Writing Cross-Browser Event Code 225

Lesson 24: Dragging and Dropping 235

Lesson 25: Tim ers and Anim ating Elements 249

Lesson 26: Forms — A Primer 261

Lesson 27: Scripting Buttons 267

Lesson 28: Scripting Text Elements 273

Lesson 29: Scripting Selection Boxes 283

Lesson 30: Scripting Checkboxes and Radio Buttons 295

Lesson 31: An Introduction to Aj ax 305

Lesson 33: Making Ajax Requests Using GET 321

Lesson 34: Making Aj ax Requests Using POST 329

Lesson 35: JSON 339

Part III: Handling Errors, Debugging, and Best Practices

Lesson 36: Common Coding Mistakes 353

Lesson 37: Handling Errors 357

Lesson 38: Debugging With Firebug 367

Lesson 39: Coding Guidelines 377

Lesson 40: Separating JavaScript and HT ML 381

Lesson 41: Separating JavaScript and CSS 387

Lesson 42: Avoiding Global Scope 389

Lesson 43: Optimizing Your Code 399

Appendix: What’s on the DVD ? 413

Index 417

Related Titles

More By This Author

General Web Site Development

by Ingo Schommer, Steven Broschart, Julian Seidenberg (Translated by)
by Barry Dorrans
by John Davies (Editor), Dieter Fensel (Editor), Frank van Harmelen (Editor)
by Neil Gray
Back to Top