: Network Disk Download
Content Introduction· · · · · ·
This book is the most in-depth JavaScript Book of all time, with all the knowledge of modern JavaScript, and shows how this technology will deliver a rich experience to website building. This book is concise, expands the reader's horizons, and focuses on basic and important topics-what modern JavaScript is and is not, the current state of browser support, and the pitfalls to be aware of. All the concepts in the book come from the analysis of real cases.
This book is suitable for all levels of WEB developers to read.
Errata Http://realazy.org/jspro/erratra
Catalog ... the first part of understanding modern JavaScript
Chapter 1th modern JavaScript Programming 2
1.1 Object-oriented JavaScript 2
1.2 Test Code 3
1.3 Package Distribution 4
1.4 Split-dom scripting 5
1.4.1 Dom 6
1.4.2 Event 7
1.4.3 JavaScript and CSS 8
1.5 Ajax 8
1.6 Browser Support 11
1.7 Summary 12
The second part of professional JavaScript development
2nd. Object-oriented JavaScript 14
2.1 Language Features 14
2.1.1 References 14
2.1.2 function overloading and type checking 16
.2.1.3 Scope 19
2.1.4 Closure Pack 20
2.1.5 Context Object 23
2.2 Object-oriented fundamentals 24
2.2.1 Object 25
Creation of the 2.2.2 object 25
2.3 Summary 30
3rd Chapter Creating reusable Code 31
3.1 Standardizing object-oriented code 31
3.1.1 Prototype Inheritance 31
3.1.2-Class Inheritance 32
3.1.3 Base Library 35
3.1.4 Prototype Library 36
3.2 Pack 39
3.2.1 Namespace 40
3.2.2 Cleanup Code 42
3.2.3 Compression 43
3.3 Distribution 45
3.4 Summary 47
4th Tools for commissioning and testing 48
4.1 Commissioning 48
4.1.1 Error Console 48
4.1.2 Dom Viewer 52
4.1.3 Firebug 54
4.1.4 Venkman 55
4.2 Test 56
4.2.1 Jsunit 56
4.2.2 J3unit 57
4.2.3 Test.simple 58
4.3 Summary 59
Part Three-discrete javascript
5th Chapter DOM 62
5.1 Dom Introduction 62
5.2 Traversing the DOM 62
5.2.1 handling spaces in the DOM 64
5.2.2 Simple DOM Traversal 66
5.2.3 binding to each HTML element 67
5.2.4 Standard DOM Method 68
5.3 Waiting for the HTML DOM to load 69
5.3.1 waiting for the entire page to load 70
5.3.2 waits for most of the DOM to load 70
5.3.3 to determine when the DOM has finished loading 71
5.4 Finding elements in an HTML document 73
5.4.1 finding elements through the value of a class 73
5.4.2 using CSS selectors to find elements 74
5.4.3 XPath 76
5.5 Getting the contents of an element 77
5.5.1 gets the text within the element 77
5.5.2 gets the HTML within the element 78
5.6 Operating Element Properties 79
5.7 Modifying the DOM 82
5.7.1 creating nodes using the DOM 83
5.7.2 inserting into the DOM 83
5.7.3 inject HTML into DOM 85
5.7.4 Deleting a DOM node 87
5.8 Summary 88
Chapter 6th Event 89
6.1 JavaScript Event Introduction 89
6.1.1 Asynchronous events and Threads 89
6.1.2 Event Phase 91
6.2 Common event features 93
6.2.1 Event Object 93
6.2.2 this keyword 93
6.2.3 Canceling event bubbling 94
6.2.4 default behavior for overloaded browsers 95
6.3 Binding Event Listener function 97
6.3.1 Legacy Bindings 98
6.3.2 DOM Binding: 99
6.3.3 dom binding: IE 100
6.3.4 addevent and Removeevent 100
6.4 Event Type 103
6.5 Split-Script programming 103
6.5.1 JavaScript disabled for proactive 104
6.5.2 Ensure that links do not depend on JavaScript 104
6.5.3 Monitor when CSS is disabled 105
Affinity for 6.5.4 Events 105
6.6 Summary 106
7th Chapter JavaScript and CSS 107
7.1 Accessing style information 107
7.2 Dynamic Elements 109
Position of the 7.2.1 element 109
Dimensions of the 7.2.2 element 115
7.2.3 Visibility of Elements 117
7.3 Animations 119
7.3.1 Slide 119
7.3.2 Fade 119
7.4 Browser 120
7.4.1 Mouse Position 120
7.4.2 Viewport 121
7.5 Drag and Drop 123
7.6 Library 128
7.6.1 moo.fx and jquery 128
7.6.2 scriptaculous 129
7.7 Summary 131
8th. Improve the form 132
8.1 Form Validation 132
8.1.1 Required Field 134
8.1.2 Pattern Matching 136
8.1.3 Rule Set 138
8.2 Displaying error messages 139
8.2.1 Verification 140
8.2.2 when to verify 142
8.3 Increase in Availability 144
8.3.1 Hover Instructions 144
8.3.2 Marked required field 146
8.4 Summary 147
The 9th chapter makes the picture library 148
9.1 Gallery Example 148
9.1.1 Lightbox 148
9.1.2 Thickbox 150
9.2 Making Gallery 151
9.2.1 Detach Load 154
9.2.2 Translucent Cover Layer 155
9.2.3 Positioning Box 157
9.2.4 Navigation 160
9.2.5 Slide 162
9.3 Summary 165
Part IV Ajax
10th AJAX Guidance 168
10.1 Using AJAX 168
10.1.1 HTTP Request 169
10.1.2 HTTP Response 173
10.2 Processing Response Data 176
10.3 Full AJAX Package 177
10.4 different uses of data 179
10.4.1 XML-based RSS Feed 179
10.4.2 HTML Injector 181
10.4.3 JSON and JavaScript: remote execution 182
10.5 Summary 182
11th. Using AJAX to improve blog 183
11.1 Never-ending blog 183
11.1.1 Blog Templates 183
11.1.2 Data Source 186
11.1.3 Event Detection 187
11.1.4 Request 188
11.1.5 Results 188
11.2 Real-Time blog 191
11.3 Summary 193
12th Auto-Complete Search 194
12.1 Example of auto-complete search 194
12.2 Making page 195
12.3 Listening Keyboard Input 197
12.4 Fetch Results 200
12.5 Navigation Results List 202
12.5.1 Keyboard Navigation 202
12.5.2 Mouse Navigation 203
12.6 Final Results 203
12.7 Summary 208
13th Chapter AJAX Wiki 209
What is the 13.1 wiki 209
13.2 Dialog Database 209
13.3 Ajax Request 211
13.4 Server-side code 212
13.4.1 Processing Request 212
13.4.2 Executing and formatting SQL 213
13.5 Processing JSON response 215
13.6 Additional case studies: JavaScript blog 216
13.7 code for the application 217
13.7.1 core JavaScript code 218
13.7.2 JavaScript SQL Library 221
13.7.3 Ruby Server-side code 221
13.8 Summary 224
Part V the future of JavaScript
14th Chapter JavaScript Road 226
14.1 JavaScript 1.6 and 1.7 226
14.1.1 JavaScript 1.6 226
14.1.2 JavaScript 1.7 229
14.2 Web Applications 1.0 231
14.2.1 Making Clock 232
14.2.2 Simple Planetary Simulation 235
14.3 Comet 238
14.4 Summary 240
Part VI Appendix
Appendix A DOM reference manual 242
Appendix B Event Reference Manual 257
Appendix C Browser 273
: Network Disk Download
Proficient in Javascript.pdf