Prototype - Useful Features
Let's now look at what Prototype can do specifically for us to develop a Dynamic Web Application.
Cross Browser Support
The Document Object Model
Prototype provides helper methods that ease some of the strain of DOM programming. Using Prototype, you can manipulate DOM very easily.
Prototype provides some excellent cross-browser support while coding events, and also extends the Function object to make it easy to work with event handling.
XMLHttpRequest, however, exposes the HTTP protocol at a very low level, which gives the developer a lot of power, but also requires her to write a lot of code in order to do simple things.
Prototype uses it's own object inheritance system to provide a hierarchy of Ajax helper objects, with more generic base classes being subclassed by more focused helpers that allow the most common types of Ajax request to be coded in a single line.