3 options
Learning jQuery : create better interaction, design, and Web development with simple JavaScript techniques / Jonathan Chaffer, Karl Swedberg ; [foreword by John Resig].
- Format:
- Book
- Author/Creator:
- Chaffer, Jonathan.
- Series:
- Community experience distilled.
- Open source : community experience distilled
- Language:
- English
- Subjects (All):
- JavaScript (Computer program language).
- Web site development.
- Physical Description:
- 1 online resource (428 p.)
- Edition:
- 3rd ed.
- Place of Publication:
- Birmingham, England : Packt Pub., 2011.
- Language Note:
- English
- Summary:
- Create better interaction, design, and web development with simple JavaScript techniques
- Contents:
- Cover; Copyright; Credits; Foreword; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started; What jQuery does; Why jQuery works well; Our first jQuery-powered web page; Downloading jQuery; Setting up jQuery in an HTML document; Adding 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; Chapter 2: Selecting Elements; The Document Object Model; The () function; CSS selectors; Styling list-item levels
- Attribute selectorsStyling links; Custom selectors; Styling alternate rows; Form selectors; DOM traversal methods; Styling specific cells; Chaining; Accessing DOM elements; Summary; Further reading; Exercises; Chapter 3: Handling Events; Performing tasks on page load; Timing of code execution; Multiple 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 itemsThe 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 events; Simulating user interaction; Keyboard events; Summary; Further reading; Exercises; Chapter 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 handAnimating 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; Exercises; Chapter 5: 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 elementsCloning for pull quotes; Content getter and setter methods; Further style adjustments; DOM manipulation methods in a nutshell; Summary; Further reading; Exercises; Chapter 6: Sending Data with Ajax; Loading data on demand; Appending HTML; Working with JavaScript objects; Retrieving JSON; Global jQuery functions; Executing a script; Loading an XML document; Choosing a data format; Passing data to the server; Performing a GET request; Performing a POST request; Serializing a form; Delivering different content for Ajax requests; Keeping an eye on the request; Error handling
- Ajax and events
- Notes:
- Includes index.
- ISBN:
- 9786613283894
- 9781621989028
- 162198902X
- 9781283283892
- 1283283891
- 9781849516556
- 1849516553
- OCLC:
- 797917774
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.