Chapter 8: The DOM and Event Handling


In This Chapter

  • Introducing the DOM

  • Appending elements using the DOM

  • Replacing elements using the DOM

  • Creating an Ajax shopping cart

  • Handling Ajax timeouts

This chapter is all about working in-depth in Ajax applications. In this chapter the Document Object Model (DOM) and handling events are described. A huge part of Ajax programming involves working in the Web page, of course, and the DOM lets you do that kind of work. Using the DOM, you can append elements to what’s already there, replace elements, search for and find elements, and so on. Event handling is also important when you’re working with Ajax, and in this chapter you’re going to see how to handle events to create a drag-and-drop, Ajax-enabled shopping cart.

This chapter starts with an introduction to the DOM, which gives you access to all the parts of a Web page in JavaScript code.



Ajax Bible
Ajax Bible
ISBN: 0470102632
EAN: 2147483647
Year: 2004
Pages: 169

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net