Hour 16JavaScript and AJAX

As you’ve seen with the JavaScript examples so far in this book, JavaScript is a client-side programming language that allows you to display and interact with information in a web browser. AJAX, on the other hand, is a set of technologies (one of which is JavaScript) that allows you to move beyond the client-side boundaries of a web browser and work with files on a web server or with responses from server-side programs.

This hour introduces you to the basics of working with AJAX, including the following highlights:

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

Using the XMLHttpRequest ...

Get Sams Teach Yourself Beginning Programming in 24 Hours, 4th 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.