O'Reilly logo

Sams Teach Yourself HTML, CSS and JavaScript All in One by Julie C. Meloni

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

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