aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
Commit message (Collapse)AuthorAgeFilesLines
...
* | Report correct Error object to handleError. Part of the fix for #6677.Dave Methvin2010-09-241-1/+1
| |
* | Merge branch 'master' of github.com:jquery/jqueryjeresig2010-09-241-2/+2
|\ \
| * | For JSON and script requests, set the scriptCharset before the url so IE ↵dmethvin2010-09-251-1/+1
| | | | | | | | | | | | won't interpret it the wrong way; fixes #4855.
| * | Added a default quality of `*/*` for content negotiation.Heungsub Lee2010-09-251-1/+1
| | |
* | | Use origSettings.context unless it's undefined; for that case use merged ↵Dave Methvin2010-09-241-1/+3
|/ / | | | | | | settings as context for backcompat with jQuery <1.3. Fixes #6727.
* / Serialize keys with empty arrays/object values in jQuery.param(). Fixes #6481.temp012010-09-241-4/+9
|/
* Allow # urls to contain #. Thanks to @alvopass in ↵jeresig2010-09-221-1/+1
| | | | f9f9ee52e16f37900296e06982a7dccba89c5a78 for the catch.
* Make sure that #... are trimmed from Ajax request URLs. Fixes #4987.John Resig2010-09-221-0/+2
|
* Applied the RegExp issues reported by Jeff Robinson here: ↵jeresig2010-09-221-6/+7
| | | | http://jmrware.com/articles/2010/jqueryregex/jQueryRegexes.html Additionally broke out all remaining inline RegExp. Fixes #7062.
* Scratch that, just punting on Opera and 304s for now - there may not be a ↵John Resig2010-09-211-7/+3
| | | | good solution here. Fixes #6060.
* Use a different workaround for detecting when Opera finds a status 304 page. ↵John Resig2010-09-211-3/+5
| | | | Fixes #6060.
* Add a flag to verify if a browser supports some form of XHR request. Fixes ↵John Resig2010-09-131-0/+3
| | | | #7030.
* Make sure that jQuery works even when the individual modules are loaded ↵jeresig2010-09-081-0/+4
| | | | separately AND jQuery.noConflict(true) is used. Fixes #7011.
* Fixing request data param issue. Thanks to mislav for the patch. Fixes #5123.jeresig2010-06-141-1/+1
|
* Tweak spacing from last commit.jeresig2010-06-141-13/+15
|
* Fix for http://dev.jquery.com/ticket/6451malsup2010-06-151-10/+18
|
* Made it so that you no longer need to build jQuery in order to run the test ↵jeresig2010-03-231-2/+2
| | | | suite (but you'll still need a checkout of QUnit and Sizzle, at least).
* Moving more properties onto jQuery.ajax, also copy them back to the jQuery ↵jeresig2010-03-021-9/+12
| | | | object for backwards compatibility.
* More changes to get jQuery in line with JSLint.jeresig2010-03-011-126/+130
|
* We don't want to increment the Ajax counter if there isn't a global event.jeresig2010-03-011-3/+1
|
* Land some additional tweaks related to running through JSLint.jeresig2010-03-011-1/+1
|
* Made some code tweaks related to running jQuery through JSLint (thanks to ↵jeresig2010-03-011-5/+7
| | | | Lorin Larson for the JSLint run).
* Adding in .bind(name, false), .unbind(name, false) support - an easy way to ↵jeresig2010-02-271-2/+2
| | | | just stop bubbling and the default action on an element. Fixes #6188.
* No reason to expose the temporary _load method.John Resig2010-02-111-5/+5
|
* Ok, this should actually fix #6041 :)Ben Alman2010-02-061-2/+2
|
* Make sure that we don't try to double-encode params using the traditional ↵jeresig2010-02-051-1/+1
| | | | style. Fixes #6041.
* Provided detailed message for JSON parse errors. Fixes #4435.Mike Alup2010-01-251-2/+5
|
* Make sure original context is maintained and not the deep extended one. ↵John Resig2010-01-251-1/+1
| | | | Fixes #5924.
* Objects with length properties weren't getting serialized properly by ↵John Resig2010-01-251-40/+41
| | | | jQuery.param(). Fixes #5862.
* Use alternative technique for triggering an abort, preventing an exception ↵John Resig2010-01-241-5/+2
| | | | from being thrown in Firefox. Fixes #5923.
* Don't set the context in .load() as it stops the global ajax events from ↵John Resig2010-01-241-3/+4
| | | | firing. Fixes #5922.
* Expose the JSON parsing logic. Fixes #5914.jeresig2010-01-231-17/+1
|
* Centralize the logic for throwing exceptions. Fixes #5913.jeresig2010-01-231-2/+2
|
* Make sure regular settings object is set as context for all Ajax requests, ↵John Resig2010-01-161-1/+1
| | | | if none is specified. Fixes #5838.
* Make sure that null params aren't traversed. Fixes #5794.jeresig2010-01-131-1/+1
|
* Send data if a DELETE Ajax request is done. Fixes #5752.jeresig2010-01-131-1/+1
|
* Make sure that the xhr object still exists after the abort is called.jeresig2010-01-121-1/+3
|
* Make sure oldAbort is only called if the xhr object still exists.jeresig2010-01-121-2/+1
|
* Simplified some of the logic for handling the ajax aborts, making sure that ↵jeresig2010-01-121-12/+9
| | | | ajaxStop isn't called twice.
* ajaxStop was getting called too many times, separated some of the logic into ↵jeresig2010-01-121-4/+7
| | | | the abort method itself.
* Make sure that Opera fires events after an aborted Ajax attempt. Fixes #5787.jeresig2010-01-121-1/+19
|
* Make sure we do the malformed JSON check for all both JSON.parse and new ↵jeresig2010-01-111-6/+9
| | | | Function (this helps to create uniformity between browser implementations of JSON.parse - like where Chrome allows some malformed strings. Thanks to DBJDBJ for the heads-up.
* Make sure the exception has some level of parity with the error from json2.js.jeresig2010-01-071-1/+1
|
* Make sure that a parsererror is thrown whenever malformed JSON comes back ↵jeresig2010-01-071-6/+12
| | | | from a server (so that the Ajax error handler is called). Makes it uniform across browsers that do and don't have JSON.parse support.
* Back out the try/catch logic from around JSON.parse. We should always try to ↵jeresig2010-01-071-3/+3
| | | | use it, otherwise security will suffer.
* There's enough logic going on in jQuery.ajaxSettings.xhr to warrant ↵jeresig2010-01-071-6/+5
| | | | splitting the function based upon the functionality.
* Added in support for content-type sniffing for scripts. Fixes #5718.jeresig2010-01-061-6/+4
|
* Detect JSON Ajax requests by the response content-type (like is done with ↵Rick Waldron2010-01-051-1/+2
| | | | XML). Fixes #5709.
* Try to use the native JSON parser in all cases and fallback to the old ↵jeresig2010-01-051-2/+4
| | | | technique otherwise. This allows us to also handle cases where the JSON parser is unable to parse JSON-like strings correctly (e.g. {foo:bar}) which is something that worked before but would stop working with the switch to the new parser.
* Make sure that the ActiveX exception is caught if it's unable to be loaded. ↵jeresig2010-01-051-3/+12
| | | | Fixes #2849.