AJAX - The Complete Reference

(avery) #1

212 Part II: Applied Ajax^


Prototype is not without its detractors who dislike the idea of extending or overriding some
aspects of JavaScript objects; some even dislike its very Ruby-flavored approach to
JavaScript OOP-style programming. We’ll reserve judgment for now on these arguments
and focus on the library’s support for Ajax.

Ajax Prototype Style

Prototype defines a global Ajax object that wraps the XHR object. Similar to other libraries,
an Ajax request object is created that requires the same sort of data it would need if it was a

FIGURE 5-2 YUI version of Ajax request explorer
Free download pdf