Chapter 20. Using AJAX

After completing this chapter, you will be able to

  • Create an AJAX Request.

  • Retrieve data from the server using AJAX.

  • Use jQuery’s AJAX function to retrieve data from the server.

The XMLHttpRequest object

The XMLHttpRequest object is central to building an Asynchronous JavaScript and XML (AJAX) application. Although implementations of JavaScript differ, the ECMAScript and the World Wide Web Consortium (W3C) have standardized many aspects of it. Even with differences between browsers, since the release of Windows Internet Explorer 7, you use the XMLHttpRequest object in the same way across all major browsers.

Microsoft first implemented the XMLHttpRequest object in Microsoft Internet Explorer 5.0. If a visitor is using a browser ...

Get JavaScript Step by Step 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.