jaubourg
|
f74b844989
|
The script prefilter now forces cross-domain requests type to GET.
|
2011-01-16 05:25:45 +01:00 |
|
jaubourg
|
8ab23aec2c
|
Fixes #2994. Not finding a transport now fires the error callbacks and doesn't make ajax return false. Had to revise how jsonp and script prefilters & transports work (better separation of concerns). Also took the opportunity to revise jXHR getRequestHeader and abort methods and enabled early transport garbage collection when the request completes.
|
2011-01-16 02:57:39 +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
|
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
|
e221d39e98
|
Script transport now uses ajaxSetup to define script dataType.
|
2011-01-12 18:54:15 +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 |
|