O'Reilly logo

Ajax Starter Kit by Phil Ballard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

17. A JavaScript Library for Ajax

In this lesson you will learn how to encapsulate some of the techniques studied up to now into a small JavaScript library that you can call from your applications.

An Ajax Library

Through the lessons and code examples up to now, we have developed a number of JavaScript code techniques for implementing the various parts of an Ajax application. Among these methods are:

• A method for generating an instance of the XMLHTTPRequest object, which works across the range of currently popular browsers

• Routines for building and sending GET and POST requests via the XMLHTTPRequest object

• Techniques for avoiding unwanted caching of GET requests

• A style of callback function that checks for correct completion of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required