calls directly by writing the XMLHttpRequest
code yourself. Then you've no doubt noticed the new, freely available AJAX libraries that seem to appear every day and the plethora of commercial AJAX products seeking to make you fully buzzword compliant. All of them seem to abstract you from hand coding (although those developers who want to know every line of code their applications execute may prefer that), but how do you go about choosing the right one?
The first step is understanding the two basic types of library and the paths they each take to get AJAX functionality into your application:
- Server-based AJAX libraries generate the AJAX code from your server application.
|AJAX Library Type
||Capable of handling multiple server languagesClearer separation of client and server code
||Leaves you to manage how to translate your server-side return values to XML or JSON
|Table 1. Pros and Cons of AJAX Library Types|