SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 8 | Next

Jonathan Snook, Aaron Gustafson, Stuart Langridge, and Dan Webb

"Accelerated DOM Scripting with Ajax, APIs, and Libraries"

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Accessing Elements Before the Page Loads . . . . . . . . . . . . . . . . . . . . 41
Attaching Events Using DOM Methods. . . . . . . . . . . . . . . . . . . . . . . . . 44
Event Capturing vs. Event Bubbling . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Attaching Events in IE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Examining Context. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Cancelling Behavior. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Tying It All Together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Event Delegation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Halfway Between Here and There. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
When Event Delegation Won??™t Work . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
nCONTENTS viii
nCHAPTER 3 Object-Oriented Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
What Is Object-Oriented Programming? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Functions . . . . . . . . . . . .


Pages:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25