aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes #7465. Reworked the regexp and associated test for cross-domain ↵jaubourg2011-01-091-2/+7
| | | | detection so that it now includes ports. Added cross-domain detection tests for protocol, hostname and port.
* Fixes #7868. ResponseText is now properly propagated for error callbacks.jaubourg2011-01-091-0/+5
|
* Fixes #7881. Setting contentType to false will prevent the Content-Type ↵jaubourg2011-01-091-1/+1
| | | | header from being sent. Unit test added.
* Renamed "complete" to "done" in order to avoid conflicts with jXHR.complete.jaubourg2011-01-061-2/+2
|
* Cleaning up trailing whitespace again.Colin Snover2011-01-051-122/+122
|
* "then" renamed "complete" and new "then" method defined using "complete" and ↵jaubourg2011-01-051-2/+2
| | | | "fail" internally. The API is still symetrical (complete/fail), still promotes AOP but is also now Promise/A compliant. Changed unit tests and ajax module accordingly.
* When serializing text, encode all line breaks as CRLF pairs per the ↵Dave Methvin2010-12-311-2/+2
| | | | application/x-www-form-urlencoded specification. Fixes #6876.
* Revised conversion logic to handle converter equal to true properly.jaubourg2010-12-311-14/+19
|
* Introduced a new promise method on deferreds that returns an immutable ↵jaubourg2010-12-311-3/+4
| | | | object (exposing then, fail, isResolved, isRejected and promise itself only). Remove $.isDeferred and moved logic directly into $.when. Made sure $.when returns a promise by using promise(). Used promise() in ajax code too.
* Renamed several ajaxSettings options. Removed cors test, fixed failing cors ↵jaubourg2010-12-311-11/+11
| | | | test.
* Revised logic in data conversion to account for when dataFilter modifies the ↵jaubourg2010-12-311-2/+2
| | | | dataTypes list.
* Removed re-usability from jXHR object (no more open, send & ↵jaubourg2010-12-311-10/+576
| | | | onreadystatechange support). Streamlined the implementation and put it back into ajax.js (removed xhr.js in the process). Went back to a more simple & direct approach to options handling (keeping much room to further minification-related optimizations). Code is cleaner, smaller & faster. Removed & edited unit tests accordingly. All build files have had xhr.js removed.
* Removed dataCheckers, added true as possible value for dataConverters ↵jaubourg2010-12-311-27/+2
| | | | indicating dataType equivalence (ie. no conversion has to be performed).
* Changed dataConverters key format.unknown2010-12-311-20/+5
|
* Rewrote the data conversion logic in ajax. Should be cleaner and faster.jaubourg2010-12-311-2/+2
|
* Renamed jQuery.xhr.bindTransport as jQuery.xhr.transport. Generalized the ↵jaubourg2010-12-311-2/+2
| | | | implementation and made prefilters use the same logic. Cleaned up code and removed as many loops and each as possible.
* Rewrote the data conversion logic in ajax. Should be cleaner and faster.jaubourg2010-12-311-7/+2
|
* Renamed jQuery.xhr.bindTransport as jQuery.xhr.transport. Generalized the ↵jaubourg2010-12-311-6/+7
| | | | implementation and made prefilters use the same logic. Cleaned up code and removed as many loops and each as possible.
* Clean trailing whitespace from all files.Colin Snover2010-12-301-24/+24
|
* Removed unnecessary upper/lowercase, it's all just lowercase now (since ↵Ben Alman2010-12-261-2/+2
| | | | $.ajax will uppercase as-needed).
* WETness getting you down? Fear not, the $.get and $.post methods are now ↵Ben Alman2010-12-261-22/+7
| | | | 866% DRYer. This fixes #7847.
* Fix fix for #6481 introduced at 7862c45ad2f32096383a21b8b301155787724476 ↵Colin Snover2010-12-221-1/+3
| | | | which did not like it when Array.prototype was modified on empty arrays.
* Fix the closure in ajax.js too.jaubourg2010-12-101-1/+1
|
* Rewrite of the Ajax module by Julian Aubourg. Some (dated) details can be ↵jaubourg2010-12-091-448/+123
| | | | found here: http://oksoclap.com/6Y26bm1ZsB more details are forthcoming. Fixes #7195.
* Merge branch 'bug6242' of https://github.com/csnover/jquery into csnover-bug6242John Resig2010-12-061-6/+13
|\
| * Fix memory leaks in IE caused by the custom abort function of $.ajax. Fixes ↵Colin Snover2010-12-031-6/+13
| | | | | | | | bug #6242.
* | Merge branch 'bug7531' of https://github.com/csnover/jquery into csnover-bug7531John Resig2010-12-061-1/+4
|\ \
| * | Optimize for size instead of speed.Colin Snover2010-11-171-1/+1
| | |
| * | Coerce s.url to string before calling replace, since replace is also a ↵Colin Snover2010-11-171-1/+4
| |/ | | | | | | method of a Location object. Fixes #7531.
* / Set cache to false as default for script or json requests. Fixes 7578.Anton M2010-11-191-1/+1
|/
* Merge branch 'bug7422' of https://github.com/csnover/jquery into csnover-bug7422John Resig2010-11-091-4/+5
|\
| * Ensure that AJAX requests are actually aborted in all browsers. Fix #7422.Colin Snover2010-11-061-4/+5
| |
* | Make sure that when multiple variables are being declared that assignments ↵John Resig2010-11-091-5/+6
|/ | | | are each done on their own line.
* Backing out fix for #5803 from 3b50eaca2cd0b1439235e39c4e98a6438e8f55b2.John Resig2010-10-251-6/+0
|
* Merge branch 'jquerymaster' of http://github.com/SlexAxton/jquery into ↵John Resig2010-10-251-1/+1
|\ | | | | | | SlexAxton-jquerymaster
| * Forces lower case comparison of protocol and host when determining whether ↵Alex Sexton2010-10-201-1/+1
| | | | | | | | the request is remote or local. Fixes #6908
* | Allow DELETE requests to have a content body, and properly serialize data to ↵dmethvin2010-10-251-4/+4
| | | | | | | | the url for HEAD requests. Fixes #7285.
* | Fixes #7229 and #5803rwldrn2010-10-241-0/+6
|/
* Bringing back the change from 80a4178af9b12e6617bfcec818c538dfe08d3791, ↵John Resig2010-10-151-4/+4
| | | | adapted to handle both the function collision and the issue mentioned in #7196.
* Reverting commit 39addc87a37b32be19f2c58ec8babe752c0243e1 after a report of ↵jeresig2010-10-141-4/+4
| | | | problems. Fixes #7196.
* Oops, still have jQuery.ajax.* on the brain.jeresig2010-10-131-2/+2
|
* Handle issue with two concurrent JSONP requests that use the same callback name.Pinhook2010-10-131-4/+4
|
* The world isn't ready for moving the Ajax methods to jQuery.ajax.*. Hope to ↵John Resig2010-10-111-28/+27
| | | | move them there some day. Fixes #7146.
* Merge branch 'bug7018' of http://github.com/csnover/jquery into csnover-bug7018John Resig2010-10-091-2/+4
|\
| * Fix bug #7018.Colin Snover2010-10-061-2/+4
| |
* | Name the try/catch arg to satisfy JSLint - thanks to @rwldrn in ↵jeresig2010-10-091-2/+2
|/ | | | 873c28425fb64fdb48cfa09d17041bded39b301f for the catch.
* Make sure we have a fallback when XMLHttpRequest is manually disabled. Fixes ↵John Resig2010-09-281-12/+24
| | | | #6298.
* Merge branch 'master' of http://github.com/aakoch/jquery into aakoch-masterjeresig2010-09-271-2/+2
|\
| * Removing the second capture group. After the changes suggested by Jeff ↵unknown2010-09-241-2/+2
| | | | | | | | | | | | Roberson, the second capture group is no longer needed. See http://stackoverflow.com/questions/3771105/can-someone-tell-me-the-purpose-of-the-second-capture-group-in-the-jquery-rts-reg
* | Make sure that requests without a body don't set contentType, and a ↵Dave Methvin2010-09-241-4/+5
| | | | | | | | zero-length body is sent rather than null. Possible fix for #6811 and #6674.