Eight Weeks of Prototype: Week 5, Ajax with Prototype
Introduction
In addition to all of the other useful classes Prototype gives to developers, it also provides a number of classes and methods for development of Ajax-enabled web applications. That is, it allows developers to easily perform HTTP sub-requests using XmlHttpRequest and to handle the response accordingly.
In this article I will show you how Prototype makes Ajax development for developers by covering the functionality it provides. Additionally, I will show you how to easily transfer data between your JavaScript code and hosting server using JSON data.
There are many Prototype concepts and functions used in this example that have been covered in earlier articles in this series, such as selecting and updating elements, and event handling.
In the final article in this series, I will cover an extensive example of programming with Prototype, which will include using Ajax to communicate with the web server.




