aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
Commit message (Collapse)AuthorAgeFilesLines
* Ajax: add an ontimeout handler to all requestsErik Lax2017-07-241-2/+3
| | | | | Fixes gh-3586 Close gh-3590
* Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapseTimmy Willison2016-09-151-2/+3
| | | | | | | | | | | | - Renames and changes rnotwhite to focus on HTML whitespace chars - Change internal use of jQuery.trim to more accurate strip and collapse - Adds tests to ensure HTML space characters are retained where valid - Doesn't add tests where the difference is inconsequential and existing tests are adequate. Fixes gh-3003 Fixes gh-3072 Close gh-3316
* Build: Put all AMD modules in "src/" in strict modeMichał Gołębiowski2016-04-258-0/+16
| | | | Fixes gh-3073
* Ajax: execute jQuery#load callback with correct contextOleg Gaidarenko2016-04-041-1/+1
| | | | | | | Thanks @blq (Fredrik Blomqvist) Fixes gh-3035 Close gh-3039
* Docs: Update support comments to follow the new syntaxMichał Gołębiowski2016-03-302-5/+5
| | | | | The changes follow the spec proposed in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
* Docs:Tests: Remove obsolete code from tests, update support commentsMichał Gołębiowski2016-03-082-4/+5
| | | | | | | | | | Support comments that were lacking the final IE/Edge version that exhibits the bug were checked & updated. Links to the Chromium bug tracker were updated. Code in tests related to unsupported browsers (like Android 2.3 in non-basic tests) has been removed. Fixes gh-2868 Closes gh-2949
* Core: Deprecate jQuery.parseJSONMichał Gołębiowski2016-03-021-9/+0
| | | | | Fixes gh-2800 Closes gh-2948
* Ajax: Don't throw exceptions on binary data responseDave Methvin2015-11-041-6/+7
| | | | | | | | | Fixes gh-2498 Closes gh-2682 The added unit test shows how this could be used to support an ArrayBuffer return, but $.ajax does not support it natively. The goal with this change was to avoid the exception.
* Ajax: trigger error callback on native abortTimmy Willison2015-11-031-8/+41
| | | | | | | - IE9 does not have onabort. Use onreadystatechange instead. Fixes gh-2079 Close gh-2684
* Ajax: improve content-type detectionOleg Gaidarenko2015-10-121-1/+1
| | | | | Fixes gh-2584 Closes gh-2643
* Ajax: correct indentationOleg Gaidarenko2015-10-121-3/+3
| | | | | | As noted by @arthurvr Follow-up for b078a62013782c7424a4a61a240c23c4c0b42614
* Ajax: Mitigate possible XSS vulnerabilityOleg Gaidarenko2015-10-121-0/+7
| | | | | | | Proposed by @jaubourg Fixes gh-2432 Closes gh-2588
* Ajax:Attributes:CSS:Manipulation: Reduce Android 2.3 supportMichał Gołębiowski2015-09-141-5/+1
| | | | | | | | Drop non-critical workarounds for Android 2.3. Fixes gh-2483 Fixes gh-2505 Closes gh-2581
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-079-50/+59
| | | | Fixes gh-2056
* Ajax: Remove jsonp callbacks through "jQuery#removeProp" methodOleg Gaidarenko2015-07-131-2/+8
| | | | | Fixes gh-2323 Closes gh-2464
* Ajax: Remove remnants of the load event alias handlingMichał Gołębiowski2015-06-011-10/+1
| | | | | | Refs 0705be475092aede1eddae01319ec931fb9c65fc Refs gh-2287 Closes gh-2362
* 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
* Core: Align branches: remove an unused variable, add commentsMichał Gołębiowski2015-04-271-0/+2
| | | | Closes gh-2233
* Ajax: remove use of jQuery#each second argumentOleg Gaidarenko2015-02-191-1/+3
| | | | Ref gh-2090
* Ajax: replace "jqXHR.complete" callback with "always"Oleg Gaidarenko2015-02-151-1/+4
| | | | | | | | | Since it was deprecated since 1.8. Also add additional comments which explains tricky behaviour of "always" callback Closes gh-2033
* Ajax: make jQuery#load "type" field explicitOleg Gaidarenko2015-02-151-2/+4
| | | | | | | | * Move "evalScript.php" file to appropriate place * Make jQuery#load "type" field explicit and add test for it Ref trac-11264
* Ajax: simplify one ajax call and add explanatory commentOleg Gaidarenko2015-02-151-1/+0
| | | | | | | * Remove "async = true" from script transport since it was needed for FF < 4 and old Opera which we do not support anymore * Add comment to "evalUrl" method on why "type" field should be explicit
* 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
|