Search code examples
jqueryjqxhr

What's the reason/primary benefit of jQuery 1.5's jqXHR?


I'm curious, what are the intentions of the jqXHR wrapper? Is there something about it that improves development?


Solution

  • It implements XHR-like functionality for non-XHR transports (think JSONP, etc.) Also, it allows you do to Promises. The best place to read up on this is right in the docs: http://api.jquery.com/jQuery.ajax/#jqXHR