jaubourg
|
d77a2a2274
|
Fixes #8152 by applying the same special cases for protocol "chrome-extension:" as were for "file:" (needs tests). Re-organizes and fixes the handling of special cases for HTTP status code in the xhr transport. Also re-organizes the handling of document.location in ajax.js.
|
2011-02-03 02:53:10 +01:00 |
|
jaubourg
|
5ef7ddc4c5
|
Fixes #8146 by introducing the xhrFields option with is a map of fieldName/fieldValue to set on the native xhr. Can be used to set withCredentials to true for cross-domain requests if needed.
|
2011-02-02 21:16:26 +01:00 |
|
jaubourg
|
b90369e8cb
|
Fixes #8135. Makes sure any exception thrown by Firefox when trying to access an XMLHttpRequest property when a network error occured is caught and notified as an error. Added test/networkerror.html to test the behavior.
|
2011-02-02 13:33:31 +01:00 |
|
jaubourg
|
cb85da7b62
|
Fixes #8125. Status is set to 200 for requests with status 0 when location.protocol if "file:". Added test/localfile.html to control it works.
|
2011-02-01 17:22:01 +01:00 |
|
jaubourg
|
5ca8f0617f
|
Reworks how values of parameters passed to error callbacks are determined. Fixes #8050.
|
2011-01-25 16:08:19 +01:00 |
|
jaubourg
|
dd5bf42122
|
Apply JQuery Core Style Guidelines to ajax.js and ajax/*.js,
|
2011-01-23 05:51:41 +01:00 |
|
jaubourg
|
3dbd600e19
|
Moves determineResponse logic into main ajax callback. Puts responseXXX fields definitions into ajaxSettings.
|
2011-01-20 19:40:51 +01:00 |
|
jaubourg
|
8ad2b31ff6
|
Removes misleading comment.
|
2011-01-20 18:50:47 +01:00 |
|
jaubourg
|
ef86694ada
|
Renames determineDataType as determineResponse. Makes it more generic as a first step into integrating the logic into the main ajax done callback. Also fixes some comments in ajax/xhr.js.
|
2011-01-20 17:38:21 +01:00 |
|
jaubourg
|
1cecfa1ece
|
Moves determineDataType into ajaxSettings so that it is accessible to 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).
|
2011-01-19 18:16:29 +01:00 |
|
jaubourg
|
92c3d87a9c
|
Moved ajaxSettings.xhr definition together with support.ajax and support.cors determination into ajax/xhr.js.
|
2011-01-19 16:55:26 +01:00 |
|
jaubourg
|
a8fa5f2ec1
|
Moved jQuery.ajax.prefilter and jQuery.ajax.transport to 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(...).
|
2011-01-13 18:33:24 +01:00 |
|
jaubourg
|
57956152d8
|
Removed xhr pooling since failing cross-domain requests leaves the xhr object in an undefined state in Firefox. Also rewrote comments related to the active xhr list so that they make sense.
|
2011-01-13 16:58:16 +01:00 |
|
jaubourg
|
667a3b31e6
|
Reworked script and xhr abort logic to take advantage of the fact jXHR.abort will complete the request itself if not done already.
|
2011-01-13 02:05:39 +01:00 |
|
jaubourg
|
1d1d4fe112
|
Moved unload abort code so that the event is only bound if the xhr transport is used. Fixes #5280.
|
2011-01-09 22:20:58 +01:00 |
|
jaubourg
|
d515068ee8
|
Fixes #7868. ResponseText is now properly propagated for error callbacks.
|
2011-01-09 04:53:29 +01:00 |
|
jaubourg
|
98c6c4b2b0
|
Added a simple cache for xhr objects in the xhr transport.
|
2011-01-09 04:03:00 +01:00 |
|
jaubourg
|
c43b078c69
|
Renamed src/transports to src/ajax (in case we need prefilters in the future and to avoid a separate prefilters directory).
|
2011-01-06 01:17:31 +01:00 |
|