O'Reilly logo

JavaScript Step by Step by Steve Suehring

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required