Chapter 24. 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 (Asynchronous JavaScript and XML), 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.

Introducing AJAX

Traditionally, one of the major limitations of JavaScript is that it couldn’t ...

Get Sams Teach Yourself HTML, CSS and JavaScript All in One 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.