Wednesday, February 23, 2011

A refreshed $.ajax in jQuery 1.5

There has been a lot of discussion about changes in jQuery 1.5 related to $.ajax and friends; one that I’m particularly excited about is that the Ajax methods now return a jqXHR object, which has capabilities far beyond those of the native XHR that the Ajax methods returned prior to jQuery 1.5.
In this 10-minute screencast, I go over some of the changes that every jQuery developer needs to know about in order to make more productive use of the Ajax methods, including a new function signature for $.ajax, the ability to add callbacks to a request after the request is set up, the ability to add error callbacks to requests set up using convenience methods like $.get, and the new Promises/A-compliant behavior of the request object.

http://vimeo.com/20181732
http://blog.rebeccamurphey.com/a-refreshed-ajax-in-jquery-15

No comments: