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
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
John Resig
56a93fc2cc
Added an extra try block to handle FF 3 x-domain requests. (Bug #1557 )
2007-12-14 02:04:00 +00:00
David Serduke
e1af5faf80
Fixed #1750 by adding a url that starts with "//" and is a dataType "script" will now use a cross domain load the same as urls that start with "http".
2007-12-12 20:54:44 +00:00
David Serduke
c6a44c7943
Fix #1987 by only doing remote <script> type ajax with GET requests. All other types will be passed on to XMLHttpRequest.
2007-12-11 20:16:19 +00:00
David Serduke
8b74ba07aa
For fix #1999 changed the RegExp to be non-greedy. Thanks emartin24.
2007-12-04 07:36:03 +00:00
David Serduke
aee221d33c
Fixed #1999 by replacing the 'no-cache' parameter if it is there instead of just appending.
2007-12-04 04:43:45 +00:00
David Serduke
aca1cc3677
Removed comments and code related to Safari being unable to do a sync global eval. With the new globalEval() code that should no longer be a problem.
2007-11-30 02:42:48 +00:00
David Serduke
4b8f6cdc86
Fixed #1557 , although it doesn't appear to be just an FF3 problem. In this case, $.getJSON() wasn't working from a remote host. I went ahead and added a unit test then added the s.dataType == "json" test for a remote <script> load. The said that json was allowed but the dataType check was missing. This appears to have fixed the bug across all browsers.
2007-11-29 19:07:20 +00:00
David Serduke
7ac564cd98
Fixed #1450 by returning 1223 as success. Couldn't normalize the status since jquery uses the actual xmlhttprequest object.
2007-11-29 17:12:08 +00:00
David Serduke
6853370fbb
Fix #1905 bug where in IE the use of RegExp.test() was failing and needed to be replaced with String.match().
2007-11-16 23:54:45 +00:00
John Resig
80a26a3266
Fix for bug #1638 , where a non-string data could break an Ajax request.
2007-10-18 00:07:45 +00:00
John Resig
9ac9aaeec3
Another fix for bug #1584 , ajaxStop would not be called for a cross-domain request if a handler was not provided.
2007-10-17 23:13:31 +00:00
John Resig
62d84e44ac
Added a fix for bug #1580 , where the query string was appended to the POST data, instead of being left alone.
2007-09-15 01:18:30 +00:00
John Resig
d9a3b133f1
Bug #1584 , ajaxStop/complete calls weren't called for JSONP requests.
2007-09-15 00:35:16 +00:00
John Resig
6d71a10ed2
Fix for bug #1600 - multiple selects were being serialized incorrectly.
2007-09-15 00:23:21 +00:00
John Resig
b4bf244c0e
Fixed some line ending issues.
2007-09-09 18:29:15 +00:00
John Resig
4e504d86b9
Errors were occuring with getScript, if you called it too early.
2007-09-09 18:09:27 +00:00
John Resig
b4e23b5af0
Reorganzing the jQuery source (first phase).
2007-09-08 12:42:32 +00:00