aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
Commit message (Collapse)AuthorAgeFilesLines
* Core: Standardize indexOf comparisonsRichard Gibson2015-01-102-2/+3
| | | | | | | | not present: `< 0` present: `> -1` at index: `=== N` Closes gh-1984
* Build: Don't assume the browser environment; smoke test on Node w/ jsdomMichał Gołębiowski2014-12-264-3/+7
| | | | | Fixes gh-1950 Closes gh-1949
* Ajax: simplify jQuery.parseXML methodShivaji Varma2014-12-251-3/+2
| | | | | | | | | -2 bytes to the gzipped size and code looks a bit nicer This wasn't landed to the compat branch though, since size would increase with this cherry-pick Closes gh-1856
* Ajax: remove event dependency from the ajax moduleOleg Gaidarenko2014-10-141-2/+3
| | | | Closes gh-1695
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-173-4/+13
|
* Ajax: .load() should trim its selectorDave Methvin2014-03-041-1/+1
| | | | Fixes #14773
* Ajax: Protect against exceptions thrown synchronously by xhr.sendjaubourg2014-01-291-4/+9
| | | | | | | | | | | When xhr.send throws an exception synchronously, the onerror handler may have been called already which, unchecked, makes the exception bubble up outside of jQuery.ajax. We now catch the exception pre-emptively and only rethrow if we know it hasn't already been notified through the onerror handler. Fixes #14683
* Revert "Ajax: Fix #14424. Use ActiveX in IE9+ on local files, close gh-1434."Dave Methvin2013-12-151-8/+0
| | | | | | This reverts commit 498e0e6c9bf486a0b1f16b455d65fcbc6c43867e. We can't use the ActiveX XHR because it doesn't support events.
* Ajax: Fix #14424. Use ActiveX in IE9+ on local files, close gh-1434.Dave Methvin2013-11-141-0/+8
| | | | | We can't feature detect ActiveX in IE11, but we can just call it and catch whatever error occurs, then try normal XHR.
* ajax: Fix #14207. file protocol returns status 0, see #8605.Dave Methvin2013-11-131-2/+2
|
* Fix #14492: More correct jQuery.parseJSON. Close gh-1419.Richard Gibson2013-11-121-1/+5
| | | | | | | | (cherry picked from commit 60a6178131afec97b68c9a45bc24459f7b8bd905) Conflicts: src/ajax/parseJSON.js
* No ticket: Update support comment to match conventionRichard Gibson2013-11-041-2/+2
|
* No ticket: Small ajax/xhr size optimizationsRichard Gibson2013-10-281-6/+19
|
* Fix #14379: AJAX requests on unloadRichard Gibson2013-10-281-4/+2
|
* No ticket: fix code style inconsistencies. Closes gh-1361Oleg2013-09-132-2/+2
|
* All non-var modules should not indent in their AMD wrappers (just for ↵Timmy Willison2013-09-092-21/+24
| | | | prettier builds). No functionality changes.
* Move parsing methods to their own files (separates manipulation dependency ↵Timmy Willison2013-09-083-0/+35
| | | | from core)
* No ticket. Restore checking individual src/**/*.js files by jsHint.Michał Gołębiowski2013-09-062-3/+3
|
* Fix #10814. Make support tests lazy and broken out to components.Michał Gołębiowski2013-09-061-6/+6
|
* Pass all tests (and load Sizzle fixture correctly) when loading with AMDTimmy Willison2013-08-291-1/+4
|
* Specify support as a dependency wherever it is used. Optimize module order ↵Timmy Willison2013-08-151-1/+2
| | | | to save 15 bytes.
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-156-2/+104
|
* Removes unnecessary call to `.off()` as noted by @dcherman.jaubourg2013-01-211-1/+1
|
* Further script transport cleanup, close gh-1123.jaubourg2013-01-201-19/+16
|
* Reduced script transportjaubourg2013-01-201-47/+21
|
* Adds the abort on unload trick back in since IE9 still exhibits the bugjaubourg2013-01-071-4/+19
|
* Fixes comments per @rwldrn. Makes sure failing requests from local protocol ↵jaubourg2013-01-071-6/+10
| | | | yields status 404, not 0.
* 2.0: reduced xhr transportjaubourg2013-01-071-210/+84
|
* 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-253-46/+38
|
* Set async to true instead of async (prop vs. attr). Closes gh-1039Timo Tijhof2012-11-211-1/+1
|
* 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-043-12/+0
|
* When IE6 & IE7 serve from the cache in async mode, resolves the request ↵jaubourg2012-05-161-4/+6
| | | | asynchronously. Fixes #11778.
* Prevents tests for replaceInData to take place if replaceInUrl is already true.jaubourg2012-04-231-1/+1
|
* remove redundant conditionRichard Gibson2012-04-221-2/+1
|
* style adherenceRichard Gibson2012-04-221-1/+1
|
* refactor jsonp.js for size and clarityRichard Gibson2012-04-221-51/+55
|
* Fixes #8205. Mitigates memory usage by recycling jsonp callback names the ↵jaubourg2012-04-201-2/+12
| | | | safest possible way (no kittens were harmed in the making of this). Doesn't even try to delete window properties (would necessitate a try/catch for IE which makes the cost in size prohibitive). Unit tests added.
* Fixes #4624... 3 years later, people!jaubourg2012-03-071-2/+1
|
* 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.