Introduction Page: xix Who This Book Is For Page: xx What This Book Covers Page: xx How This Book Is Structured Page: xxi What You Need to Use This Book Page: xxiii Conventions Page: xxiv Source Code Page: xxiv Errata Page: xxv p2p.wrox.com Page: xxv Part I: The jQuery API Page: 1 Chapter 1: Introduction to jQuery Page: 3 What jQuery Can Do for You Page: 5 Who Develops jQuery? Page: 7 Obtaining jQuery Page: 7 Installing jQuery Page: 7 Programming Conventions Page: 9 Summary Page: 25 Chapter 2: Selecting and Filtering Page: 27 The Origin of the Selectors API Page: 28 Using the Selectors API Page: 29 Filtering a Selection Page: 33 Slicing a Selection Page: 58 Adding to a Selection Page: 58 Summary Page: 60 Exercises Page: 60 Chapter 3: Events Page: 63 The Various Event Wrapper Methods Page: 63 Attaching Other Events Page: 67 Attaching Persistent Event Handlers Page: 69 Removing Event Handlers Page: 75 Creating Custom Events Page: 80 Summary Page: 86 Exercises Page: 87 Chapter 4: Manipulating Content and Attributes Page: 89 Setting, Retrieving, and Removing Attributes Page: 89 Setting Multiple Attributes Page: 95 Manipulating Class Names Page: 96 Manipulating HTML and Text Content Page: 102 Replacing Elements Page: 122 Removing Content Page: 126 Cloning Content Page: 129 Summary Page: 132 Exercises Page: 133 Chapter 5: Iteration of Arrays and Objects Page: 135 Enumerating Arrays Page: 135 Filtering Selections and Arrays Page: 142 Mapping a Selection or an Array Page: 151 Array Utility Methods Page: 156 Summary Page: 161 Exercises Page: 162 Chapter 6: CSS Page: 165 Working with CSS Properties Page: 165 jQuery's Pseudo-Classes Page: 166 Obtaining Outer Dimensions Page: 167 Summary Page: 174 Exercises Page: 175 Chapter 7: AJAX Page: 177 Making a Server Request Page: 178 Loading HTML Snippets from the Server Page: 194 Dynamically Loading JavaScript Page: 200 AJAX Events Page: 204 Summary Page: 219 Exercises Page: 220 Chapter 8: Animation and Easing Effects Page: 223 Showing and Hiding Elements Page: 223 Sliding Elements Page: 230 Fading Elements Page: 234 Custom Animation Page: 236 Animation Options Page: 241 Summary Page: 242 Exercises Page: 242 Chapter 9: Plugins Page: 243 Writing a Plugin Page: 243 Good Practice for jQuery Plugin Development Page: 265 Summary Page: 265 Exercises Page: 265 Chapter 10: Scrollbars Page: 267 Getting the Position of a Scrollbar Page: 267 Scrolling to a Particular Element within a Scrolling <div> Page: 272 Scrolling to the Top Page: 276 Summary Page: 277 Exercises Page: 277 Chapter 11: HTML5 Drag and Drop Page: 279 Implementing Drag and Drop Page: 279 Implementing Drag-and-Drop File Uploads Page: 294 Summary Page: 319 Exercises Page: 320 Part II: jQuery UI Page: 321 Chapter 12: Draggable and Droppable Page: 323 Making Elements Draggable Page: 324 Designating Drop Zones for Draggable Elements Page: 330 Summary Page: 337 Exercises Page: 337 Chapter 13: Sortable Page: 339 Making a List Sortable Page: 339 Customizing Sortable Page: 347 Saving the State of Sorted Lists Page: 353 Summary Page: 358 Exercises Page: 359 Chapter 14: Selectable Page: 361 Introducing the Selectable Plugin Page: 361 Summary Page: 372 Exercises Page: 372 Chapter 15: Accordion Page: 373 Building an Accordion UI Page: 373 Changing the Default Pane Page: 375 Changing the Accordion Event Page: 380 Setting the Header Elements Page: 380 Summary Page: 382 Exercises Page: 382 Chapter 16: Datepicker Page: 383 Implementing a Datepicker Page: 383 Localizing the Datepicker Page: 395 Summary Page: 397 Exercises Page: 398 Chapter 17: Dialog Page: 399 Implementing a Dialog Page: 399 Styling a Dialog Page: 400 Making a Modal Dialog Page: 406 Auto-Opening the Dialog Page: 409 Controlling Dynamic Interaction Page: 411 Animating the Dialog Page: 411 Working with Dialog Events Page: 412 Summary Page: 414 Exercises Page: 415 Chapter 18: Tabs Page: 417 Implementing Tabs Page: 417 Styling the Tabbed User Interface Page: 419 Loading Remote Content via AJAX Page: 424 Animating Tab Transitions Page: 428 Summary Page: 429 Exercises Page: 429 Part III: Popular Third-Party jQuery Plugins Page: 430 Chapter 19: Tablesorter Page: 432 Sorting a Table Page: 432 Summary Page: 437 Exercises Page: 440 Chapter 20: Creating an Interactive Slideshow Page: 443 Creating a Slideshow Page: 443 Summary Page: 449 Exercises Page: 449 Chapter 21: Working with HTML5 Audio and Video Page: 459 Downloading the MediaElement Plugin Page: 459 Configuring the MediaElement Plugin Page: 459 Creating an HTML Structure That Enables Fallback Video/Audio Plugins for Older Browsers Page: 461 Implementing h.264 Video Content Page: 462 Customizing Player Controls Page: 463 Controlling When the Download of Media Begins Page: 463 Summary Page: 464 Exercises Page: 464 Chapter 22: Creating a Simple WYSIWYG Editor Page: 467 Making an Element Editable with the contenteditable Attribute Page: 467 Creating Buttons to Apply Bold, Italic, Underline, Font, and Font Size Page: 468 Creating a Selection Page: 473 Storing a Selection Page: 478 Restoring a Selection Page: 479 Summary Page: 480 Exercises Page: 480 Part IV: Appendices Page: 481 Appendix A: Exercise Answers Page: 483 Chapter 2 Page: 483 Chapter 3 Page: 484 Chapter 4 Page: 484 Chapter 5 Page: 485 Chapter 6 Page: 485 Chapter 7 Page: 485 Chapter 8 Page: 486 Chapter 9 Page: 487 Chapter 10 Page: 487 Chapter 11 Page: 488 Chapter 12 Page: 488 Chapter 13 Page: 489 Chapter 14 Page: 489 Chapter 15 Page: 489 Chapter 16 Page: 489 Chapter 17 Page: 490 Chapter 18 Page: 490 Chapter 19 Page: 490 Chapter 20 Page: 490 Chapter 21 Page: 491 Chapter 22 Page: 491 Appendix B: jQuery Selectors Page: 493 Appendix C: Selecting, Traversing, and Filtering Page: 501 Appendix D: Events Page: 509 Event Object Page: 517 Appendix E: Manipulating Content, Attributes, and Custom Data Page: 523 Appendix F: More Content Manipulation Page: 527 Appendix G: AJAX Methods Page: 533 Appendix H: CSS Page: 543 Appendix I: Utilities Page: 547 Appendix J: Draggable and Droppable Page: 551 Draggable UI Object Options Page: 556 Droppable UI Object Options Page: 558 Appendix K: Sortable Page: 561 Appendix L: Selectable Page: 569 Notes Page: 572 Appendix M: Animation and Easing Effects Page: 573 Appendix N: Accordion Page: 585 Accordion UI Object Options Page: 586 Appendix O: Datepicker Page: 589 Appendix P: Dialog Page: 599 Appendix Q: Tabs Page: 605 Appendix R: Resizable Page: 611 Appendix S: Slider Page: 615 Appendix T: Tablesorter Page: 619 Appendix U: MediaElement Page: 623 Advertisement Page: ix End User License Agreement Page: ix
Description:Web Development with jQuery offers a major update to the popular Beginning JavaScript and CSS Development with jQuery from 2009. More than half of the content is new or updated, and reflects recent innovations with regard to mobile applications, jQuery mobile, and the spectrum of associated plugins.
Readers can expect thorough revisions with expanded coverage of events, CSS, AJAX, animation, and drag and drop. New chapters bring developers up to date on popular features like jQuery UI, navigation, tables, interactive capabilities, and audio and video. The book focuses on the new features of jQuery that improve performance and speed, providing huge advantages over traditional JavaScript.
This resource provides a deep understanding of jQuery and sets readers up for successful interactions with all it has to offer.