Commit graph

106 commits

Author SHA1 Message Date
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
John Resig c3c94823f2 Fixed the handling of .status == 304 in Opera (it always returns 0). Also silently "pass" in Opera 9.6 (which is unable to send the correct headers with setRequestHeader). Follow-up to bug #4764. 2009-07-14 21:13:23 +00:00
John Resig 28ab4d3224 Adding support for etags in $.ajax() - and simplified the if-modified-since implementation. Thanks to Lawrence for the patch! Closes ticket #4764. 2009-06-15 13:36:12 +00:00
John Resig 90a87c03b4 Switched to using new Function instead of eval for handling JSON parsing (Fixes bug #4680). Added support for JSON.parse, if it exists (Fixes bug #4429). 2009-05-20 21:28:48 +00:00
Brandon Aaron e10e625bf4 fix for #4183 2009-05-16 20:23:58 +00:00
Brandon Aaron 611d24086c fix for #4378, base tag causes javascript error in IE when loading cross-domain JS via ajax 2009-03-27 18:20:57 +00:00
Brandon Aaron f8ef75eb91 remove trailing spaces 2009-03-23 01:55:17 +00:00
John Resig ca79d866fe Made it so that search input elements are now serialized. Fixes bug #4107. 2009-02-18 19:43:14 +00:00
John Resig a894c60489 Stopped a memory leak on getScript calls. Fixes #3962. 2009-02-07 16:57:59 +00:00
John Resig 00b70c7527 Landed a fix for timeouts not being aborted properly. Fixes jQuery bug #3874. 2009-01-21 21:46:53 +00:00
Ariel Flesler ddec4fdc34 jquery ajax: File size optimization for compressed code. 2009-01-04 21:15:02 +00:00
John Resig 434b87b8a2 Moved from the old JSMin to using YUIMin for compressing the jQuery source. Additionally landed some improvements from #3770 which dramatically reduce the filesize. The final minifed + gzipped size of jQuery went from 19817 bytes to 18063 bytes. 2009-01-04 15:29:27 +00:00
John Resig b850ab2b8e Added the new jQuery.support object and removed all uses of jQuery.browser from within jQuery itself (while simultaneously deprecating the use of jQuery.browser). 2008-12-21 21:22:44 +00:00
John Resig d81dfbcccf The code for handling Ajax timeouts was broken (the abort was being called too early). Fixing this allows the test suite to work again. 2008-11-18 04:53:34 +00:00
John Resig ab551c2b14 Standardized the type checks across core. isFunction and isArray now use Object.prototype.toString to verify the type, .constructor use was removed in favor of typeof, typeof checks now use ===, undefined checks use === undefined. All of this is outlined in the new style guidelines: http://docs.jquery.com/JQuery_Core_Style_Guidelines#Type_Checks. Fixes bug #3618. 2008-11-17 16:32:05 +00:00
John Resig 0aa8d40cdf Landing fixes for tickets #2935 and #2688 (Aborting ajax doesn't stop the setInterval, ajaxStop event isn't getting triggered). 2008-11-14 04:16:00 +00:00