aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax/xhr.js
Commit message (Collapse)AuthorAgeFilesLines
* Ajax: remove event dependency from the ajax moduleOleg Gaidarenko2014-12-111-2/+3
| | | | | | (cherry-picked from c580a529716cd89eccdbda1bf3e9636e5a38811e) Ref 4e7f34f6296111f7f91d621397dfb02c6bf4c41f
* Ajax: support non-RFC2616 methods for oldIEOleg2014-01-141-2/+13
| | | | | Closes gh-1466 Fixes #13240
* Fix #14503: Cast to string before setting XHR header. Close gh-1427.hongymagic2013-11-141-1/+9
|
* Fix #14475. Use IE11-friendly detect for proper XHR object.Dave Methvin2013-11-141-7/+3
| | | | We don't seem to have test cases for local file access.
* Remove old try...catch for old FFOleg2013-11-081-52/+42
|
* Ref 705216d: Synchronize ajax/xhr.js with masterRichard Gibson2013-11-081-1/+1
|
* No ticket: Update style per gh-1418 commentsRichard Gibson2013-11-041-8/+6
|
* Ref 705216dc: Synchronize ajax/xhr.js with master. Close gh-1418.Richard Gibson2013-11-041-76/+54
|
* Fix #10814. Fix #14084. Make support tests lazy and broken out to components.Michał Gołębiowski2013-09-061-6/+6
|
* Specify support as a dependency wherever it is used. Optimize module order ↵Timmy Willison2013-08-151-1/+2
| | | | | | | | | | to save 15 bytes. Conflicts: src/css.js src/manipulation.js src/offset.js src/support.js
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-0/+7
| | | | | | | | | | | | | | | | | | | | Conflicts: Gruntfile.js README.md src/ajax.js src/ajax/xhr.js src/attributes.js src/core.js src/css.js src/data.js src/effects.js src/event.js src/manipulation.js src/offset.js src/selector-native.js src/traversing.js test/unit/core.js test/unit/data.js
* 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).