Build Your Own AJAX Web Applications Part 3/3
By SitePoint Books | Published  12/7/2006 | Tutorials | Rating:
Page 20

1542_fig3.10
Figure 3.10. The completed App Monitor

Summary

Our first working application showed how AJAX can be used to make multiple requests to a server without the user ever leaving the currently loaded page. It also gave a fairly realistic picture of the kind of complexity we have to deal with when performing multiple tasks asynchronously. A good example of this complexity was our use of setTimeout to time the XMLHttpRequest requests. This example provided a good opportunity to explore some of the common problems you'll encounter as you develop AJAX apps, such as loss of scope and connection timeouts, and provided practical solutions to help you deal with them.

That's it for this excerpt from Build Your Own AJAX Web Applications [46] -- don't forget, you can download this article in .pdf format [47]. The book has eight chapters in total, and by the end of it, readers will have built numerous fully functioning web apps including an online chess game that multiple players can play in real time -- the book's Table of Contents [48] has the full details.

Summary

In this chapter, we had a quick overview of AJAX and the technologies that make it tick. We looked at some of the horrible coding contortions that developers had to endure back in the bad old days to create something resembling an interactive UI [25], and we saw how AJAX offers a huge improvement on those approaches. With a decent command of the building blocks of AJAX -- XML, the DOM, CSS, XMLHttpRequest, and JavaScript, which ties them all together -- you have everything you need to start building dynamic and accessible [26] AJAX sites.

About This Article

Build your own AJAX web applicationsThis Article Excerpted from: “Build Your Own Ajax Web Applications” published by Melbourne-based SitePoint.

Order online and get free shipping when you order a second book, plus a bonus video tutorial worth $9.95.

SitePoint

Glossary

[19] http://www.w3.org/MarkUp/2004/xhtml-faq
[20] http:/glossary.php?q=O#term_10
[21] http://www.sitepoint.com/glossary.php?q=U#term_67
[22] http://www.sitepoint.com/glossary.php?q=M#term_31
[23] http://www.sitepoint.com/glossary.php?q=F#term_45
[24] http://www.sitepoint.com/glossary.php?q=X#term_32
[25] http://www.sitepoint.com/glossary.php?q=U#term_67
[26] http://www.sitepoint.com/glossary.php?q=A#term_61
[27] http://www.sitepoint.com/glossary.php?q=J#term_65
[28] http://www.sitepoint.com/glossary.php?q=%23#term_2
[29] http://www.sitepoint.com/glossary.php?q=O#term_27
[30] http://www.sitepoint.com/glossary.php?q=I#term_30
[31] http://www.sitepoint.com/glossary.php?q=S#term_14
[32] http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10
[33] http://www.sitepoint.com/glossary.php?q=%23#term_2
[34] http://www.sitepoint.com/glossary.php?q=C#term_21
[35] http://docs.sun.com/source/816-6409-10/obj.htm
[36] http://docs.sun.com/source/816-6409-10/obj2.htm
[37] http://www.crockford.com/javascript/private.html
[38] http://developer.apple.com/internet/webcontent/xmlhttpreq.html
[39] http://jibbering.com/2002/4/httprequest.html
[40] http://www.xulplanet.com/references/objref/XMLHttpRequest.html
[41] http://kb.mozillazine.org/XMLHttpRequest
[42] http://msdn.microsoft.com/library/en-us/xmlsdk/html/xmobjxmlhttprequest.asp


Share and Enjoy:

StumbleUpon Toolbar


How would you rate the quality of this article?
1 2 3 4 5
Poor Excellent
Your NameYour Email
Your Comment:

Verification:
Enter the security code shown below:
imgRegenerate Image


Article Series
This article is part 3 of a 3 part series. Other articles in this series are shown below:
  1. Build Your Own AJAX Web Applications Part 1/3
  2. Build Your Own AJAX Web Applications Part 2/3
  3. Build Your Own AJAX Web Applications Part 3/3
Comments