aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax/xhr.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes #8135. Makes sure any exception thrown by Firefox when trying to ↵jaubourg2011-02-021-65/+82
| | | | access an XMLHttpRequest property when a network error occured is caught and notified as an error. Added test/networkerror.html to test the behavior.
* Fixes #8125. Status is set to 200 for requests with status 0 when ↵jaubourg2011-02-011-4/+6
| | | | location.protocol if "file:". Added test/localfile.html to control it works.
* Reworks how values of parameters passed to error callbacks are determined. ↵jaubourg2011-01-251-6/+3
| | | | Fixes #8050.
* Apply JQuery Core Style Guidelines to ajax.js and ajax/*.js,jaubourg2011-01-231-52/+42
|
* Moves determineResponse logic into main ajax callback. Puts responseXXX ↵jaubourg2011-01-201-8/+7
| | | | fields definitions into ajaxSettings.
* Removes misleading comment.jaubourg2011-01-201-1/+0
|
* Renames determineDataType as determineResponse. Makes it more generic as a ↵jaubourg2011-01-201-11/+12
| | | | first step into integrating the logic into the main ajax done callback. Also fixes some comments in ajax/xhr.js.
* Moves determineDataType into ajaxSettings so that it is accessible to ↵jaubourg2011-01-191-3/+2
| | | | transports without the need for a second argument and so that we can now pass the original options to the transport instead. Also ensures the original options are actually propagated to prefilters (they were not).
* Moved ajaxSettings.xhr definition together with support.ajax and ↵jaubourg2011-01-191-129/+173
| | | | support.cors determination into ajax/xhr.js.
* Moved jQuery.ajax.prefilter and jQuery.ajax.transport to ↵jaubourg2011-01-131-1/+1
| | | | jQuery.ajaxPrefilter and jQuery.ajaxTransport so that proxying the ajax method doesn't turn into a nightmare. Thanks go to scott_gonzalez and DaveMethvin for pointing out the issue. Also made ajaxSetup return "this" to enable chainable definitions -- jQuery.ajaxSetup(...).ajaxPrefilter(...).ajaxTransport(...).
* Removed xhr pooling since failing cross-domain requests leaves the xhr ↵jaubourg2011-01-131-18/+9
| | | | object in an undefined state in Firefox. Also rewrote comments related to the active xhr list so that they make sense.
* Reworked script and xhr abort logic to take advantage of the fact jXHR.abort ↵jaubourg2011-01-131-37/+28
| | | | will complete the request itself if not done already.
* Moved unload abort code so that the event is only bound if the xhr transport ↵jaubourg2011-01-091-16/+21
| | | | is used. Fixes #5280.
* Fixes #7868. ResponseText is now properly propagated for error callbacks.jaubourg2011-01-091-9/+7
|
* Added a simple cache for xhr objects in the xhr transport.jaubourg2011-01-091-1/+8
|
* Renamed src/transports to src/ajax (in case we need prefilters in the future ↵jaubourg2011-01-061-0/+191
and to avoid a separate prefilters directory).