O'Reilly logo

CoffeeScript Programming with jQuery, Rails, and Node.js by Michael Erasmus

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

Ajax methods

jQuery provides the $.ajax method to perform Ajax requests that work across browsers. Traditionally, this has been a pain to do, since browsers all implemented different interfaces for handling Ajax. jQuery takes care of all of that and provides a simpler, callback-based way of constructing and executing Ajax requests. This means that you can declaratively specify how the Ajax call should be made and then provide functions that jQuery will call back when the request succeeds or fails.

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