O'Reilly logo

Beginning JavaScript with DOM Scripting and Ajax, Second Edition by Christian Heilmann, Russ Ferguson

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 8

image

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

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