jeresig
|
d60b197810
|
ajaxStop was getting called too many times, separated some of the logic into the abort method itself.
|
2010-01-12 10:47:00 -05:00 |
|
jeresig
|
7afe6dcc08
|
Make sure that Opera fires events after an aborted Ajax attempt. Fixes #5787.
|
2010-01-12 10:31:51 -05:00 |
|
jeresig
|
44e6beb103
|
Make sure we do the malformed JSON check for all both JSON.parse and new 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.
|
2010-01-11 16:43:21 -05:00 |
|
jeresig
|
a9665bbe9b
|
Make sure the exception has some level of parity with the error from json2.js.
|
2010-01-07 12:25:50 -05:00 |
|
jeresig
|
308d6cdad0
|
Make sure that a parsererror is thrown whenever malformed JSON comes back 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.
|
2010-01-07 12:21:58 -05:00 |
|
jeresig
|
c14fa516ae
|
Back out the try/catch logic from around JSON.parse. We should always try to use it, otherwise security will suffer.
|
2010-01-07 11:54:26 -05:00 |
|
jeresig
|
c68fbc2071
|
There's enough logic going on in jQuery.ajaxSettings.xhr to warrant splitting the function based upon the functionality.
|
2010-01-07 10:00:55 -05:00 |
|
jeresig
|
6861b5d4eb
|
Added in support for content-type sniffing for scripts. Fixes #5718.
|
2010-01-06 10:19:38 -05:00 |
|
Rick Waldron
|
787f271052
|
Detect JSON Ajax requests by the response content-type (like is done with XML). Fixes #5709.
|
2010-01-05 19:48:16 -05:00 |
|
jeresig
|
ff3645ee05
|
Try to use the native JSON parser in all cases and fallback to the old 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.
|
2010-01-05 17:33:41 -05:00 |
|
jeresig
|
3f648c4e3a
|
Make sure that the ActiveX exception is caught if it's unable to be loaded. Fixes #2849.
|
2010-01-05 11:35:11 -05:00 |
|
jeresig
|
b2289f3ec1
|
Try to use XMLHttpRequest in more cases in IE 7. Thanks to Matt Kruse and Sam Collett for the suggestions. Fixes #3623, #2849, #5338, and #5529.
|
2010-01-05 10:57:30 -05:00 |
|
jeresig
|
6cb2945837
|
Rather than declaring empty anonymous functions all around, introduce and use a single empty function. Thanks to Matt Kruse for the suggestion.
|
2009-12-31 09:50:49 -05:00 |
|
jeresig
|
fe6c86d530
|
Experiment switching to using onreadystatechange rather than a setInterval for Ajax requests. Fixes #5735.
|
2009-12-30 23:53:06 -05:00 |
|
Ben Alman
|
3951894504
|
Moved jQuery.param "traditional" flag into jQuery.ajaxSettings, can now be overridden via 2nd argument to jQuery.param
|
2009-12-23 01:49:53 +08:00 |
|
jeresig
|
3776cbe314
|
Standardize on using double-quotes for string literals.
|
2009-12-21 20:13:16 -05:00 |
|
jeresig
|
61e37d4149
|
Made a number of spacing changes to bring the code more-inline with the jQuery Core Style Guideline.
|
2009-12-21 19:58:13 -05:00 |
|
Dave Methvin
|
fe7e2fee16
|
Ignore case of script tags to make sure they're removed. Fixes #5668. Thanks to Motty/Fudgey for the report and Jitter for the patch!
|
2009-12-18 04:06:54 +08:00 |
|
Dave Methvin
|
b31b9bd756
|
Add new html5 input types to list of serializable types. Older browers handle these as type="text" so they should be consistently serialized on both old and new browsers. Fixes #5667.
|
2009-12-18 04:05:45 +08:00 |
|
Dave Methvin
|
d85d366fbf
|
Default callbackContext to the $.extended ajax options for 1.3.2 compatibility, per #5654.
|
2009-12-18 04:01:39 +08:00 |
|
Ben Alman
|
04b92e7831
|
Reorganized param code slightly to once again define buildParams as a named function expression, as moving it outside the param closure would necessitate moving and rewriting the add function as well.
|
2009-12-18 04:01:05 +08:00 |
|
Ben Alman
|
927e1966de
|
Further modified jQuery 1.4 .param() method to serialize arrays containing non-scalar values. PHP and jQuery BBQ can both deserialize these structures, while rack (as of 1.0.0) cannot.
|
2009-12-18 04:01:05 +08:00 |
|
John Resig
|
9e60fec46b
|
Make sure that an actual timeout is triggered (and not accidentally triggered from a setInterval). Fixes #5609.
|
2009-12-09 08:09:41 -08:00 |
|
John Resig
|
fbc73d45b4
|
Added in support for $.ajax jsonpCallback (allowing you to specify the name of the callback method - and allowing you to avoid skipping the cache). Fixes #4206.
|
2009-12-06 17:17:14 -08:00 |
|
jeresig
|
9c1db29a06
|
Adding in an extra check, per the comments in 25b0ba9f96 .
|
2009-12-05 18:06:27 -05:00 |
|
John Resig
|
25b0ba9f96
|
Allow the user to explicitly set a content-type header even when there's no data being sent to the server. Fixes #1900.
|
2009-12-04 21:20:58 -05:00 |
|
Karl Swedberg
|
ddb86f8d5b
|
added curly braces around all if/else statements
|
2009-11-28 04:09:14 +08:00 |
|
John Resig
|
a7678267d8
|
Disable the X-Requested-With header to avoid preflighting remote POST requests. Fixes #4601.
|
2009-11-25 13:29:34 -05:00 |
|
John Resig
|
0f6e9a8c69
|
Fixed spacing on the modified Ajax code.
|
2009-11-25 13:24:24 -05:00 |
|
John Resig
|
357e2ae989
|
Added a check to make sure that a load request isn't done if the element doesn't exist. Fixes #4235.
|
2009-11-11 14:55:32 -05:00 |
|
John Resig
|
c2101245c0
|
Pass in the XHR object as the third argument to the success callback (which helps $.get, $.post, and load). Fixes #3363.
|
2009-11-11 14:29:01 -05:00 |
|
John Resig
|
6a722e251d
|
jQuery.ajax modified the passed-in object only to help test the code - this shouldn't occur. Fixes #5439.
|
2009-11-07 16:08:07 +01:00 |
|
John Resig
|
513053d62b
|
The complete event wasn't getting called on local file 404s. Thanks to 'mrspeaker' for the patch. Fixes #5468.
|
2009-11-07 14:59:47 +01:00 |
|
visionmedia
|
50cf4351a6
|
Consistant splits using " " instead of ","
This was used in several other areas, and IMO is easier to read
and since nothing is multi-word then we misewell use " "
|
2009-10-27 08:40:59 +08:00 |
|
Yehuda Katz
|
67089eedf6
|
Getting $.param working well; Patch by ben_alman
|
2009-09-17 22:37:19 +00:00 |
|
Ariel Flesler
|
cf8c1249d1
|
jquery ajax: addition for #2452. Wasn't working correctly in some cases.
|
2009-09-15 16:45:37 +00:00 |
|
Ariel Flesler
|
5b9214e7d8
|
jquery ajax: closes #2452. get() and post() weren't shifting all arguments correctly.
|
2009-09-15 15:28:28 +00:00 |
|
Ariel Flesler
|
183f37e4b4
|
jquery ajax: closes #4994. Adding 'context' setting to $.ajax
|
2009-09-15 15:19:58 +00:00 |
|
Brandon Aaron
|
4a3c4c86c9
|
fix for #5017
|
2009-09-14 20:55:40 +00:00 |
|
Ariel Flesler
|
36ebb4f75e
|
jquery ajax: Misc rename
|
2009-09-14 19:57:49 +00:00 |
|
Yehuda Katz
|
50d78e7658
|
Adds nested param serialization; Closes #4201 (by merbjedi)
|
2009-09-02 05:16:21 +00:00 |
|
John Resig
|
f52c4a3d5f
|
If the XHR object no longer exists assume that the request was aborted.
|
2009-08-26 17:39:52 +00:00 |
|
John Resig
|
8c18dcdeb0
|
Make sure payload is sent for PUT requests. (Thanks alx). Fixes #4971.
|
2009-07-27 19:02:40 +00:00 |
|
John Resig
|
fe80b5af45
|
Make sure that the script is removed only if it's actually in the page still. Fixes #4934.
|
2009-07-22 14:38:21 +00:00 |
|
John Resig
|
eaca153aea
|
Moved the RegExp in ajax.js out from inline, goes towards ticket #4111.
|
2009-07-19 19:44:15 +00:00 |
|
John Resig
|
5272ed28bc
|
Made a number of syntax tweaks to ajax.js.
|
2009-07-19 19:37:11 +00:00 |
|
John Resig
|
fa2d663639
|
Did some cleaning up of ajax.js and fixed a bug from commit [6457].
|
2009-07-19 19:03:18 +00:00 |
|
John Resig
|
81985c7878
|
Fixed a typo with commit [6457].
|
2009-07-19 17:02:01 +00:00 |
|
John Resig
|
48e9a39995
|
Standardize on using .nodeName in place of .tagName. Fixes jQuery bug #4923.
|
2009-07-19 13:32:53 +00:00 |
|
John Resig
|
0d5c3a68a0
|
Standardizing on .test() and .exec() - moving away from using .match() for RegExp. Fixes jQuery bug #4113.
|
2009-07-19 13:21:51 +00:00 |
|