Chapter 11. Request

There is perhaps no bigger revolution that propelled JavaScript to where it is today than Ajax. This paradigm shift that started in the early 2000s brought JavaScript back to the center of Web development and restored the luster it had lost during its early years. And this whole revolution happened because of the rediscovery of a very interesting object called the XMLHttpRequest.

In this chapter, we'll learn about the HTTP request and response process, and how XMLHttpRequest fits into the equation. We'll also talk about the MooTools Request class, a simple abstraction of the native XMLHttpRequest API, and how it makes working with requests easier and more MooToolsian.

Requests and Responses

At the most basic level, browsers ...

Get Pro JavaScript with MooTools: Learning Advanced JavaScript Programming now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.