Chargement en cours…

Learning jQuery.

Create better interaction, design, and web development with simple JavaScript techniques.

Détails bibliographiques
Cote:Libro Electrónico
Auteur principal: Chaffer, Jonathan
Autres auteurs: Swedberg, Karl
Format: Électronique eBook
Langue:Inglés
Publié: Birmingham : Packt Pub., 2011.
Édition:3rd ed.
Collection:Community experience distilled.
Sujets:
Accès en ligne:Texto completo
Table des matières:
  • Table of Contents; Learning jQuery Third Edition; Learning jQuery Third Edition; Credits; Foreword; About the Authors; About the Reviewers; www.PacktPub.com; Support files, eBooks, discount offers and more; Why subscribe?; Free access for Packt account holders; Preface; What This Book Covers; What you need for this book; Who this book is for; History of the jQuery project; Conventions; Reader feedback; Customer support; Downloading the example code; Errata; Piracy; Questions; 1. Getting Started; What jQuery does; Why jQuery works well; Our first jQuery-powered web page; Downloading jQuery.
  • Setting up jQuery in an HTML documentAdding our jQuery code; Finding the poem text; Injecting the new class; Executing the code; The finished product; Plain JavaScript vs. jQuery; Development tools; Firebug; Summary; 2. Selecting Elements; The Document Object Model; The () function; CSS selectors; Styling list-item levels; Attribute selectors; Styling links; Custom selectors; Styling alternate rows; Form selectors; DOM traversal methods; Styling specific cells; Chaining; Accessing DOM elements; Summary; Further reading; Exercises; 3. Handling Events; Performing tasks on page load.
  • Timing of code executionMultiple scripts on one page; Shortcuts for code brevity; Passing an argument to the .ready() callback; Simple events; A simple style switcher; Enabling the other buttons; Event handler context; Further consolidation; Shorthand events; Compound events; Showing and hiding advanced features; Highlighting clickable items; The journey of an event; Side effects of event bubbling; Altering the journey: the event object; Event targets; Stopping event propagation; Default actions; Event delegation; Methods for event delegation; Removing an event handler; Event namespacing.
  • Rebinding eventsSimulating user interaction; Keyboard events; Summary; Further reading; Exercises; 4. Styling and Animating; Inline CSS modification; Basic hide and show; Effects and speed; Speeding in; Fading in and fading out; Sliding up and sliding down; Compound effects; Creating custom animations; Building effects by hand; Animating multiple properties at once; Positioning with CSS; Simultaneous versus queued effects; Working with a single set of elements; Bypassing the queue; Manual queueing; Working with multiple sets of elements; Callbacks; In a nutshell; Summary; Further reading.
  • Exercises5. Manipulating the DOM; Manipulating attributes; Non-class attributes; Value callbacks; DOM element properties; DOM tree manipulation; The () function revisited; Creating new elements; Inserting new elements; Moving elements; Wrapping elements; Inverted insertion methods; Copying elements; Cloning for pull quotes; Content getter and setter methods; Further style adjustments; DOM manipulation methods in a nutshell; Summary; Further reading; Exercises; 6. Sending Data with Ajax; Loading data on demand; Appending HTML; Working with JavaScript objects; Retrieving JSON.