Hour 17. JavaScript 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 your 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

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

Using the XMLHttpRequest object’s properties ...

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