List of Listings

Chapter 1. Introducing jQuery

Listing 1.1. Creating HTML elements on the fly

Chapter 3. Bringing pages to life with jQuery

Listing 3.1. Dynamically tracking the dimensions of an element

Chapter 4. Events are where it happens!

Listing 4.1. Declaring DOM Level 0 event handlers

Listing 4.2. Events propagating from the point of origin to the top of the DOM tree

Listing 4.3. Establishing event handlers with the DOM Level 2 Model

Listing 4.4. Tracking event propagation with bubble and capture handlers

Listing 4.5. Establishing event handlers without the need for browser-specific code

Listing 4.6. Invoking complementary listeners on every other click event

Listing 4.7. HTML structure for a single appetizer entry

Listing 4.8. Complete code for the appetizer order form

Chapter 5. Sprucing up with animations and effects

Listing 5.1. Ready-handler code that instruments the list with expandable behavior

Listing 5.2. Changes to the collapsible list to use the toggle() command

Listing 5.3. Our list example augmented with the animated effects

Chapter 6. jQuery utility functions

Listing 6.1. Testing for browsers

Listing 6.2. Ready handler test 1

Listing 6.3. Ready handler test 2

Listing 6.4. Putting the $.extend function to the test

Listing 6.5. Dynamically loading a script file and examining the results

Chapter 7. Extending jQuery with custom plugins

Listing 7.1. Implementation of the $.toFixedWidth() utility function

Listing 7.2. Implementation of the $.formatDate() utility function

Listing 7.3. Implementation of the setReadOnly() plugin method

Listing 7.4. The implementation of the form for testing the new setReadOnly() command

Listing 7.5. The test page that creates the Photomatic display shown in figure 7.2

Listing 7.6. The complete Photomatic Plugin implementation

Chapter 8. Talk to the server with Ajax

Listing 8.1. Object detection resulting in code that can deal with many browsers

Listing 8.2. Writing the ready state handler to ignore all but the completed state

Listing 8.3. Using native XHR to include an HTML fragment

Listing 8.4. The first phase of our Boot Closet retailer page

Listing 8.5. Using $.get() utility function to fetch data from the server

Listing 8.6. The Boot Closet page augmented with cascading dropdowns

Listing 8.7. The implementation of our custom select commands

Listing 8.8. The implementation of the termifier() command

Appendix JavaScript that you need to know but might not!

Listing A.1. Demonstrating that the value of the function context is dependent on how the function is invoked

Listing A.2. Gaining access to the environment of a function declaration through closures

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.4.221