PART 5Web 2.0

CHAPTER 18Ajax and JSON

Ajax, short for Asynchronous JavaScript and XML, is a combination of technologies, typically JavaScript and XML. It is used to create "rich applications" that can retrieve and submit data through their interface without reloading the web page.

The Ajax term is somewhat controversial. The concept of Ajax has been around for avery long time, but the term is a recent invention and scorned by some JavaScript developers. They continue to call Ajax XHR, short for XmlHttpRequest, whichis the name of the core JavaScript object that makes Ajax applications run.

In addition to the XHR object, Ajax applications will also typically use the browser Document Object Model (DOM) to access HTML and update the content on ...

Get Pro PHP: Patterns, Frameworks, Testing and More now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.