Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ajax: Protect against exceptions thrown synchronously by xhr.send | jaubourg | 2014-01-29 | 1 | -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 Methvin | 2013-12-15 | 1 | -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 Methvin | 2013-11-14 | 1 | -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 Methvin | 2013-11-13 | 1 | -2/+2 |
| | |||||
* | No ticket: Update support comment to match convention | Richard Gibson | 2013-11-04 | 1 | -2/+2 |
| | |||||
* | No ticket: Small ajax/xhr size optimizations | Richard Gibson | 2013-10-28 | 1 | -6/+19 |
| | |||||
* | Fix #14379: AJAX requests on unload | Richard Gibson | 2013-10-28 | 1 | -4/+2 |
| | |||||
* | No ticket: fix code style inconsistencies. Closes gh-1361 | Oleg | 2013-09-13 | 1 | -1/+1 |
| | |||||
* | Fix #10814. Make support tests lazy and broken out to components. | Michał Gołębiowski | 2013-09-06 | 1 | -6/+6 |
| | |||||
* | Specify support as a dependency wherever it is used. Optimize module order ↵ | Timmy Willison | 2013-08-15 | 1 | -1/+2 |
| | | | | to save 15 bytes. | ||||
* | AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163. | Timmy Willison | 2013-08-15 | 1 | -0/+7 |
| | |||||
* | Adds the abort on unload trick back in since IE9 still exhibits the bug | jaubourg | 2013-01-07 | 1 | -4/+19 |
| | |||||
* | Fixes comments per @rwldrn. Makes sure failing requests from local protocol ↵ | jaubourg | 2013-01-07 | 1 | -6/+10 |
| | | | | yields status 404, not 0. | ||||
* | 2.0: reduced xhr transport | jaubourg | 2013-01-07 | 1 | -210/+84 |
| | |||||
* | Fix #10417. setTimeout w/o 2nd arg is jQuery.later! Close gh-1065. | Oleg | 2012-12-10 | 1 | -1/+1 |
| | |||||
* | No ticket: compress ajax. Close gh-1041. | Richard Gibson | 2012-11-25 | 1 | -18/+16 |
| | |||||
* | Alternate fix for #11426; check responseText. Close gh-843. | Oleg Gaidarenko | 2012-10-20 | 1 | -2/+1 |
| | |||||
* | Latest JSHint gets cranky with the _ vars in catch() {} | Rick Waldron | 2012-10-15 | 1 | -2/+2 |
| | |||||
* | Fixes a variety of typographical problems. Closes gh-853 | Chris Faulkner | 2012-07-11 | 1 | -1/+1 |
| | |||||
* | Follow the style guide, lose 72 bytes! Closes gh-840. | Mike Sherov | 2012-07-09 | 1 | -6/+5 |
| | |||||
* | Strips IIFEs from modules; Always require built jQuery for tests. | Rick Waldron | 2012-06-04 | 1 | -4/+0 |
| | |||||
* | When IE6 & IE7 serve from the cache in async mode, resolves the request ↵ | jaubourg | 2012-05-16 | 1 | -4/+6 |
| | | | | asynchronously. Fixes #11778. | ||||
* | Fixes #11426: getting the responseText of an xhr should be tried/caught ↵ | jaubourg | 2012-03-07 | 1 | -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 hoisting | Mike Sherov | 2012-01-19 | 1 | -5/+5 |
| | | | | also add smarttabs:true and fix some smarttabs spacing issues | ||||
* | Fix #10692. JSLint is dead! Long live JSHint! | Mike Sherov | 2011-12-08 | 1 | -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 ↵ | jaubourg | 2011-04-21 | 1 | -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 ↵ | jaubourg | 2011-04-19 | 1 | -1/+1 |
| | | | | transports natural. | ||||
* | Removes now unnecessary regexp and companion function. Fixes some spacing ↵ | jaubourg | 2011-04-15 | 1 | -1/+1 |
| | | | | issues. Shortens field names. | ||||
* | Continuing to map request headers using their name in uppercase for the ↵ | Sam Bisbee | 2011-04-15 | 1 | -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 ↵ | jaubourg | 2011-03-07 | 1 | -5/+6 |
| | | | | cross-domain requests. | ||||
* | Minor changes to enforce JQuery Core Style Guidelines. | jaubourg | 2011-02-12 | 1 | -9/+11 |
| | |||||
* | Adds missing crossDomain test. | jaubourg | 2011-02-11 | 1 | -1/+1 |
| | |||||
* | Fixes #8245. Ajax now ensures header names are capitalized so that ↵ | jaubourg | 2011-02-11 | 1 | -2/+2 |
| | | | | non-compliant xhr implementations don't override them. | ||||
* | Simplifies status normalization in xhr transport. Local file test modified ↵ | jaubourg | 2011-02-11 | 1 | -29/+8 |
| | | | | for clarity. | ||||
* | Replaces jQuery.each loop for headers with a foreach loop. | jaubourg | 2011-02-09 | 1 | -3/+3 |
| | |||||
* | Fixes #8219. Introduces the mimeType option to override content-type header ↵ | jaubourg | 2011-02-09 | 1 | -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 ↵ | jaubourg | 2011-02-07 | 1 | -34/+26 |
| | | | | caching in the process. | ||||
* | Fixes #8177. XHR transport now considers 304 Not Modified responses as 200 ↵ | jaubourg | 2011-02-05 | 1 | -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 ↵ | jaubourg | 2011-02-03 | 1 | -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 ↵ | jaubourg | 2011-02-03 | 1 | -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 ↵ | jaubourg | 2011-02-03 | 1 | -7/+7 |
| | | | | object has been opened. | ||||
* | Fixes #8152 by applying the same special cases for protocol ↵ | jaubourg | 2011-02-03 | 1 | -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 ↵ | jaubourg | 2011-02-02 | 1 | -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 ↵ | jaubourg | 2011-02-02 | 1 | -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 ↵ | jaubourg | 2011-02-01 | 1 | -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. ↵ | jaubourg | 2011-01-25 | 1 | -6/+3 |
| | | | | Fixes #8050. | ||||
* | Apply JQuery Core Style Guidelines to ajax.js and ajax/*.js, | jaubourg | 2011-01-23 | 1 | -52/+42 |
| | |||||
* | Moves determineResponse logic into main ajax callback. Puts responseXXX ↵ | jaubourg | 2011-01-20 | 1 | -8/+7 |
| | | | | fields definitions into ajaxSettings. | ||||
* | Removes misleading comment. | jaubourg | 2011-01-20 | 1 | -1/+0 |
| | |||||
* | Renames determineDataType as determineResponse. Makes it more generic as a ↵ | jaubourg | 2011-01-20 | 1 | -11/+12 |
| | | | | first step into integrating the logic into the main ajax done callback. Also fixes some comments in ajax/xhr.js. |