Chapter 25. AJAX: Remote Scripting

What You’ll Learn in This Chapter:

How AJAX enables JavaScript to communicate with server-side programs and files

Using the XMLHttpRequest object’s properties and methods

Creating your own AJAX library

Using AJAX to read data from an XML file

Debugging AJAX applications

Using AJAX to communicate with a PHP program

Remote scripting, also known as AJAX, is a browser feature that enables JavaScript to escape its client-side boundaries and work with files on a web server or with server-side programs. In this chapter, you’ll learn how AJAX works and create two working examples of client-side to server-side interactivity using AJAX requests.

Introducing AJAX

Traditionally, one of the major limitations ...

Get HTML, CSS and JavaScript All in One, Sams Teach Yourself: Covering HTML5, CSS3, and jQuery, 2nd Edition 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.