O'Reilly logo

jQuery and JavaScript Phrasebook by Brad Dayley

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 from jQuery

jQuery provides wrapper functions that offer a bit cleaner interface to send AJAX requests. In jQuery, the XMLHttpRequest object is replaced by the jqXHR object, which is a jQuery version with a few additional methods to support the jQuery AJAX wrapper functions. The following is a list of the jQuery AJAX wrapper functions:

Image .load(url [, data ] [, success(data, textStatus, jqXHR) ] )—This method is used to load data from the server directly into  the elements represented by jQuery object.

Image .getScript (url [, data ] [, success(data, ...

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