aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax/xhr.js
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Ajax: remove "onunload" event handler"Timmy Willison2016-01-061-11/+24
| | | | This reverts commit 4632e55870a00a70e737a862cdb0820278cec0fe.
* Revert "Misc: Drop support for older browsers; update support comments"Timmy Willison2016-01-061-2/+7
| | | | This reverts commit 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278.
* Ajax: Don't let onreadystatechange preempt exceptions from xhr.sendRichard Gibson2015-10-231-2/+6
| | | | Ref 0a6e1c4b191f177fce2dac5fd3a17b76f853fd26
* Ajax: Catch synchronous readystatechange eventsRichard Gibson2015-10-231-6/+8
| | | | | Fixes gh-2673 Ref trac-14683
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-6/+15
| | | | | Ref 10fdad742a2a6aa9f0e00b3e04fc5264797c53c7 Fixes gh-2056
* Core: Support non-browser environmentsMichał Gołębiowski2015-08-161-1/+2
| | | | | | | | | | | | Fixes gh-2133 Fixes gh-2501 Closes gh-2504 Refs gh-1950 Refs gh-1949 Refs gh-2397 Refs gh-1537 Refs gh-2504 Refs 842958e7aecd0d75a7ee9e2aaec83457701aa2f3
* Ajax: Fix the XHR fallback logic for IE8Michał Gołębiowski2015-05-191-5/+2
| | | | | | | | | The logic for IE8 has been incorrectly reversed: every non-local request outside of the whitelist was run via the native XHR. This commit reverses this logic and adds back a fallback to the ActiveX XHR if the native one fails even after the regex detection. Refs 61f812b7e7b88dd6e0078c241e4c88905ea51562
* Ajax: Rename Spartan to Edge in a commentMichał Gołębiowski2015-05-181-2/+2
|
* Ajax: Use the native XHR for all non-local requests in IE9+Michał Gołębiowski2015-05-181-9/+23
| | | | | | | | | IE throws an error on cross-domain PATCH requests if issued via the ActiveX interface. This commit switches the logic to use the native XHR in all non-local requests. Fixes gh-1684 Closes gh-2183
* Ajax: remove "onunload" event handlerOleg Gaidarenko2015-05-031-18/+3
| | | | | | | | | | Remove hack for IE lost connections, update for it was released by Microsoft at November 12, 2013. See https://support.microsoft.com/en-us/kb/2905733 Ref trac-5280 Ref gh-2047 Ref a117dd05f638a078c21dc57f19966f4ae81f98f0
* Misc: Drop support for older browsers; update support commentsMichał Gołębiowski2014-12-081-6/+2
| | | | | | | | | | That includes IE<8, Opera 12.x, Firefox<29, Safari<6.0 and some hacks for old Blackberry. Fixes gh-1836 Fixes gh-1701 Refs gh-1815 Refs gh-1820
* Ajax: remove event dependency from the ajax moduleOleg Gaidarenko2014-10-141-2/+3
| | | | Ref 4e7f34f6296111f7f91d621397dfb02c6bf4c41f
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-171-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: build/tasks/build.js src/ajax/xhr.js src/attributes/classes.js src/attributes/prop.js src/attributes/val.js src/core/init.js src/core/ready.js src/css.js src/css/curCSS.js src/css/defaultDisplay.js src/data.js src/data/var/dataPriv.js src/data/var/dataUser.js src/dimensions.js src/effects.js src/event.js src/manipulation.js src/offset.js src/queue.js src/selector-native.js test/data/testrunner.js
* 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.