aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax/xhr.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix #13355. Tweak Uglify options and var order for gzip. Close gh-1151.Oleg2013-01-311-5/+1
| | | | | Change uglify-js options for compressor Change variables initialization sequence for some declarations
* Never use the XML as parsed by the XHR instance. Use raw text instead and ↵jaubourg2013-01-211-8/+1
| | | | let the ajax conversion logic do the trick. -20 min/gzipped. Fixes #13276. Unit test added.
* Fix #10417. setTimeout w/o 2nd arg is jQuery.later! Close gh-1065.Oleg2012-12-101-1/+1
|
* No ticket: compress ajax. Close gh-1041.Richard Gibson2012-11-251-18/+16
|
* Alternate fix for #11426; check responseText. Close gh-843.Oleg Gaidarenko2012-10-201-2/+1
|
* Latest JSHint gets cranky with the _ vars in catch() {}Rick Waldron2012-10-151-2/+2
|
* Fixes a variety of typographical problems. Closes gh-853Chris Faulkner2012-07-111-1/+1
|
* Follow the style guide, lose 72 bytes! Closes gh-840.Mike Sherov2012-07-091-6/+5
|
* Strips IIFEs from modules; Always require built jQuery for tests.Rick Waldron2012-06-041-4/+0
|
* When IE6 & IE7 serve from the cache in async mode, resolves the request ↵jaubourg2012-05-161-4/+6
| | | | asynchronously. Fixes #11778.
* Fixes #11426: getting the responseText of an xhr should be tried/caught ↵jaubourg2012-03-071-1/+7
| | | | because of IE's inability to give access to binary data. Unit test added.
* Add undef:true to JSHint now that it understands hoistingMike Sherov2012-01-191-5/+5
| | | | also add smarttabs:true and fix some smarttabs spacing issues
* Fix #10692. JSLint is dead! Long live JSHint!Mike Sherov2011-12-081-5/+5
| | | | Still needs this sizzle PR: https://github.com/jquery/sizzle/pull/82
* Makes sure no unload handler is bound when not in IE. Also simplifies the ↵jaubourg2011-04-211-30/+26
| | | | whole "on unload abort" code. Also avoids the declaration of yet another variables in the jQuery main closure for the temporary XHR used to assess support properties.
* (Re) Fixes #8884 in a way that keeps the format of the headers map sent to ↵jaubourg2011-04-191-1/+1
| | | | transports natural.
* Removes now unnecessary regexp and companion function. Fixes some spacing ↵jaubourg2011-04-151-1/+1
| | | | issues. Shortens field names.
* Continuing to map request headers using their name in uppercase for the ↵Sam Bisbee2011-04-151-1/+1
| | | | index, but we now map to an object with an unmodified name and value: { name: "", value: "" }. This prevents overwriting of the user's supplied headers, which many applications parse with case sensitivity, because we no longer use the modified, uppercase index when building the request.
* Fixes #8423. Never set X-Requested-With header automagically for ↵jaubourg2011-03-071-5/+6
| | | | cross-domain requests.
* Minor changes to enforce JQuery Core Style Guidelines.jaubourg2011-02-121-9/+11
|
* Adds missing crossDomain test.jaubourg2011-02-111-1/+1
|
* Fixes #8245. Ajax now ensures header names are capitalized so that ↵jaubourg2011-02-111-2/+2
| | | | non-compliant xhr implementations don't override them.
* Simplifies status normalization in xhr transport. Local file test modified ↵jaubourg2011-02-111-29/+8
| | | | for clarity.
* Replaces jQuery.each loop for headers with a foreach loop.jaubourg2011-02-091-3/+3
|
* Fixes #8219. Introduces the mimeType option to override content-type header ↵jaubourg2011-02-091-0/+5
| | | | in conversion (and in native xhr when possible). Adds companion overrideMimeType method on jqXHR object (it simply sets the option). Unit test added.
* Makes sure xhrs are actually aborted on unload in IE. Simplifies active xhrs ↵jaubourg2011-02-071-34/+26
| | | | caching in the process.
* Fixes #8177. XHR transport now considers 304 Not Modified responses as 200 ↵jaubourg2011-02-051-0/+6
| | | | OK if no conditional request header was provided (as per the XMLHttpRequest specification).
* Don't use a local copy of jQuery.ajaxSettings.isLocal anymore but use the ↵jaubourg2011-02-031-12/+5
| | | | current value so that it is possible to set isLocal to true for protocols unknown to jQuery.
* Stores jQuery.ajaxSettings.isLocal locally at load time so that any change ↵jaubourg2011-02-031-23/+30
| | | | to it won't affect the transport. Fixes the url parsing regexp to deal with empty domains. Adds informative text into test/localfile.html and handles Opera's failure. Revises the way xhr are created by doing all tests at load time and normalizes all the xhr creation functions so that none of them may throw an exception.
* Fixes #8146. Custom fields in xhrFields are now set after the XMLHttpRequest ↵jaubourg2011-02-031-7/+7
| | | | object has been opened.
* Fixes #8152 by applying the same special cases for protocol ↵jaubourg2011-02-031-25/+23
| | | | "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.
* Fixes #8146 by introducing the xhrFields option with is a map of ↵jaubourg2011-02-021-1/+9
| | | | fieldName/fieldValue to set on the native xhr. Can be used to set withCredentials to true for cross-domain requests if needed.
* 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).