Work :: Ajax Libraries

- Code from the MicroRequest class
Download
- Language:
- Javascript
The AJAX method for building Web applications is a promising recent development in Web client programming. Unfortunately, the technical details that underpin the AJAX method make using AJAX unwieldy. The API classes necessary for using the AJAX method are implemented differently in the major browsers, so developers must repeatedly fork code based on which browser is in effect. These API classes also implement a fairly low level of functionality that only takes into account the data transmittal from client to server.
The classes in this library simplify the use of AJAX in Web applications. They streamline the creation and initiation of requests, provide simple helper methods for adding parameter data to requests, and implement a more efficient listener mechanism for responses. In addition, they offer all the usual benefits of the object-oriented approach to software development, such as data encapsulation and code re-use.
Included classes are:
- MicroRequest
- Acts as a layer over the built-in browser objects used for AJAX requests. Provides a simplified listener mechanism and formats data for transport using both the GET and POST methods.
Example: Enter a zip code in Massachusetts to find the name of the city.
Cambridge
Download
- Copyright
- © 2001-2010
- Scott Martin.
- All Rights Reserved.
- Valid
- XHTML and
- CSS.