Chapter 2. First steps with Ajax
Listing 2.1. window.html
Listing 2.2. window.css
Listing 2.3. Ajax “hello” page
Listing 2.4. hello.css
Listing 2.5. hello.js
Listing 2.6. Using an IFrame
Listing 2.7. Creating an IFrame
Listing 2.8. getXmlDocument() function
Listing 2.9. getXmlHttpRequest() function
Listing 2.10. Using a callback handler
Listing 2.11. Full end-to-end example of document loading using XMLHttpRequest
Chapter 3. Introducing order to Ajax
Listing 3.1. ContentLoader object
Listing 3.2. getLeft() function
Listing 3.3. Singleton TradingMode object in Java
Listing 3.4. Singleton TradingMode object in JavaScript
Listing 3.5. Quick-and-dirty generation of an XML stream from a database query
Listing 3.6. Sample XML output from listing 3.5
Listing 3.7. Object model for our garment store
Listing 3.8. Revised page using ORM to talk to the database
Listing 3.9. PHP Smarty template for our XML output
Listing 3.10. Using Smarty to generate the XML
Chapter 4. The page as an application
Listing 4.1. musical.html
Listing 4.2. musical.css
Listing 4.3. musical.js
Listing 4.4. musical_dyn_keys.js
Listing 4.5. musical_dyn_keys.html
Listing 4.6. Changes to musical_dyn_keys.css
Listing 4.7. mousemat.html
Listing 4.8. EventRouter.js
Listing 4.9. Revised mousemat.html, using EventRouter
Listing 4.10. Garment.js
Listing 4.11. ObjectViewer object
Listing 4.12. Using the objViewSpec property
Listing 4.13. Modified autoSpec() function
Listing 4.14. Modified PropertyViewer constructor