Commit graph

67 commits

Author SHA1 Message Date
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
Ariel Flesler 325755d4b3 jquery core: closes #3541. Added isArray. 2008-10-29 02:01:22 +00:00
Ariel Flesler 5dc7bb7233 jquery ajax: closes #3249. Slight modification on serializeArray, shorter and faster code, and allows a custom form object. 2008-08-13 01:44:36 +00:00
Ariel Flesler c9c024280a jquery ajax: misc optimization for $.fn.load(). 2008-08-11 01:35:23 +00:00
Ariel Flesler bf6f7e7a63 jquery ajax: closes #3231. The ajax setting 'dataFilter' can also parse the response. 2008-08-07 20:41:05 +00:00
Ariel Flesler 9d9c4d2a51 jquery ajax: extends #3087. The xhr factory is now an ajax setting called 'xhr' instead of a method (jQuery.getAjaxTransport). 2008-08-07 13:07:21 +00:00
Ariel Flesler b8ceedbe2b jquery ajax: closes #3087, #2167, #2128. The ajax transport creation process is exposed to allow overriding. 2008-08-04 14:18:06 +00:00
Ariel Flesler bf14ac1236 jquery ajax: added a comment explaining the last commit. 2008-06-17 21:31:57 +00:00
Ariel Flesler 35b8157507 jquery ajax: closes #3052. Additional check on httpData() to keep compatibility with older code (form plugin). 2008-06-17 21:03:20 +00:00
Ariel Flesler 335b8816c2 jquery ajax: Fixes #3045. The protocol wasn't being checked to see if a script is required for cross domain requests. 2008-06-17 20:32:15 +00:00
Ariel Flesler c90fe0283b jquery ajax: passing the settings object to httpData instead of just the dataFilter, so that when called it retains the object as "this". 2008-06-05 20:00:50 +00:00
Ariel Flesler 11761def42 jquery ajax: small (misc) improvement to $.param. 2008-05-28 02:50:38 +00:00
Ariel Flesler 7ec772374d jquery ajax: Closes #1516. load() can get a string of data (not only a hash) and it'll be a GET request. 2008-05-27 22:44:06 +00:00
Ariel Flesler 042e51e731 jquery ajax: changing a set of &&/|| for ?/:. 2008-05-25 03:20:13 +00:00
Ariel Flesler afc2ebde14 jquery ajax: Closes #2567, additional setting for $.ajax called 'dataFilter'. It's an optional function that receives the ajax response, and returns the sanitized version. 2008-05-16 16:39:27 +00:00
Ariel Flesler c5f4d70e2b jqueryjquery ajax: closes #1289. Renamed 'xml' and 'r' to 'xhr'. 2008-05-15 21:03:31 +00:00
Ariel Flesler 54867a9803 jquery ajax: caching repetive conversions/checks for settings.type in $.ajax. 2008-05-15 14:16:19 +00:00
Ariel Flesler 31f22f244b jquery ajax: fixed #2865 and #2570. Not passing username to xml.open if it's null, or it open a login popup on some Opera's. 2008-05-15 13:45:09 +00:00
Ariel Flesler d524c7eecc jquery ajax: closes #2842. 2008-05-14 19:50:24 +00:00
Ariel Flesler 06eb4d3223 jquery ajax: renaming jQuery.ajax.re to remote. 2008-05-13 19:58:00 +00:00
Ariel Flesler 5c0aea3bfe jquery ajax: absolute urls were assumed to be cross domain. Closes #2816. 2008-05-13 19:47:39 +00:00
Ariel Flesler 3f5ff3097c jquery: removing unnecessary trailing and leading spaces & tabs. 2008-05-13 01:45:58 +00:00
Ariel Flesler a56317ea3a jquery event: fixed $.fn.load, closes #2819. 2008-05-08 16:23:43 +00:00
Jörn Zaefferer 46931d3146 jquery ajax: support for dynamic data arguments, see #2806; added test/data/echoQuery.php for easier testing of sent query strings 2008-05-06 22:21:43 +00:00
Ariel Flesler 17b1e407d1 mainly made the code shorter:
- removed some needless if's
- replace multiple "var x" for one, comma separated declaration.
- added a local fn called now() for the (new Date)s
- fixed the indentation of a block, and a typo in a comment.
- used fn instead of prototype where possible
- jquery fx: exposed the speeds hash as jQuery.fx.speeds.

Also fixed (again) line endings
2008-04-29 23:34:50 +00:00
Jörn Zaefferer d3d8f3561b jquery.ajax: fix for beforeSend-cancelling-sideeffects 2008-04-22 22:18:11 +00:00
Jörn Zaefferer e454e8305d jquery.ajax: improvement for #2688, added test 2008-04-22 22:07:17 +00:00
Yehuda Katz a9fe9a2a5f Closes #2688 2008-04-14 18:16:01 +00:00
David Serduke 0635df4391 Fixed #2174 by removing the s.dataType == "json" check for possible cross domain since it causes absolute urls to use a <script> tag ajax retrieval even though absolute urls work fine for retrieving local data. Cross-domain jsonp will still work since the $.ajax() function actually changes the s.dataType to "script" before it reaches this check in cases where it is s.dataType == "jsonp" or s.dataType == "json" and a parameter has =? in it. 2008-01-17 21:38:58 +00:00
John Resig ff08982508 And the rest of the _default change. 2008-01-14 19:37:31 +00:00
John Resig 260fc23e92 Tweaked the default Accept header to _default. 2008-01-14 19:37:05 +00:00
John Resig 047debc750 Fixed default property name for Opera (bug #2159). 2008-01-14 19:15:27 +00:00
John Resig 5974495e6b Just added support for Accept headers in Ajax requests - defaults to the correct header depending on the type of request that's being performmed. (Bug #1986) 2008-01-14 18:19:28 +00:00
Yehuda Katz b91eef070d Adds support for username and password to $.ajax 2008-01-07 01:03:31 +00:00
David Serduke 9af7387579 Added code to remove the script tag on successful jsonp calls. 2007-12-17 00:51:59 +00:00
John Resig 6a25c20f5c The extra & was getting gobbled, oops. 2007-12-17 00:48:12 +00:00
John Resig b721a2f472 Added a fix for bug #2020 - if you want to do data: {callback: "?"}, do jsonp: "callback" instead. 2007-12-17 00:44:00 +00:00
David Serduke feb9051c0e Fixed #1781 for warnings created on load by FF javascript.options.strict == true. 2007-12-16 01:03:50 +00:00
David Serduke 4e339ef557 Added feature #1934 by allowing script.charset to be set through an optional 'scriptCharset' ajax option. 2007-12-15 23:30:34 +00:00
David Serduke 06c2f06a21 Fixed #2046 by forcing the dataType to 'html' in the .load() function. 2007-12-14 17:06:41 +00:00