Commit graph

14 commits

Author SHA1 Message Date
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 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 06c2f06a21 Fixed #2046 by forcing the dataType to 'html' in the .load() function. 2007-12-14 17:06:41 +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 12ef255ffd Added ajax error messages in the unit test suite because Safari was sometimes tossing errors that were being ignored and that caused a freeze in the test suite. 2007-12-06 23:23:10 +00:00
David Serduke be4a8c32ac Safari sometimes stops in the test suite on the ajax section when I run the whole suite and its running on my local machine. I went ahead and put better error detection in for the test that is the culprit so it will keep going. It seems to do fine if I run it from a server. It gives xml.status as 0. Maybe this is the reason http://www.pearweb.com/javascript/XMLHttpRequest.html 2007-12-05 23:03:58 +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 701b072e1a There was a disabled test in the ajax test suite which said there were too many simultainous requests. I re-enabled it when I found a bug that might have been the cause of the failure instead and it seems to work fine. We can disable it again if that ends up not being the case. 2007-12-04 01:51:07 +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
John Resig b453257653 Disabled the Ajax tests from running locally. 2007-09-23 15:58:49 +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 6d71a10ed2 Fix for bug #1600 - multiple selects were being serialized incorrectly. 2007-09-15 00:23:21 +00:00
John Resig 6728e3cf74 Finished up some of the reorganization. 2007-09-08 12:46:01 +00:00
Renamed from test/unit/ajaxTest.js (Browse further)