Back-End Interaction with Ajax and Node.js

You finally reached the chapter where I talk about Ajax. The good news is you can use Ajax to create really nice, slick interfaces, and you can extend JavaScript’s reach much further than the browser and the currently displayed document.

The not-so-good news is that Ajax depends on the XMLHTTPRequest object (or XHR for short) or its Microsoft equivalent, and that one has “HTTP” written all over it. What this means is that you cannot use any Ajax examples without a server. Furthermore, you need some basic knowledge of server-side scripting to use Ajax (unless you use one of the out-of-the-box ...

Get Beginning JavaScript with DOM Scripting and Ajax, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.