Dan Heberden
|
a7e7dbd978
|
Bug 7587; Enhancement/1.6 Feature: Bypass regexp filter on $.parseJSON and use native thrown exceptions if window.JSON.parse is available
|
2011-04-05 01:43:14 -07:00 |
|
jaubourg
|
714ae379db
|
Fixes #8509. Makes URL regexp less overzealous and ensures it recognizes URL schemes which do not contain a conformant hierarchical structure ( as per section 2.1.2 of http://www.ietf.org/rfc/rfc2718.txt ). Also adds about: and adobe air's app: and app-storage: to the list of local protocols and provides a failover in case document.location is illformed. Unit test added.
|
2011-03-15 19:20:03 +01:00 |
|
gnarf
|
71bd828d9f
|
Grouped up the test
|
2011-02-24 13:21:05 -06:00 |
|
gnarf
|
14e9da51f9
|
A quick change to detect AIR urls
|
2011-02-24 13:10:33 -06:00 |
|
jaubourg
|
5b38439011
|
Fixes #8297. Makes sure response headers with empty values are handled properly and do not prevent proper parsing of the entire response headers string. Unit test amended.
|
2011-02-17 17:03:09 +01:00 |
|
jaubourg
|
1ddfdabbb9
|
Fixes #8277. Sets data to undefined rather than null when it is not provided in ajax helpers so that it won't revent data set in ajaxSettings from being used. Unit test added.
|
2011-02-15 21:53:38 +01:00 |
|
Anton M
|
481d940e79
|
Remove duplicate test.
|
2011-02-11 11:59:42 +01:00 |
|
jaubourg
|
f6e173437e
|
Fixes #8219. Introduces the mimeType option to override content-type header in conversion (and in native xhr when possible). Adds companion overrideMimeType method on jqXHR object (it simply sets the option). Unit test added.
|
2011-02-09 17:47:33 +01:00 |
|
jaubourg
|
a2dbdc1f54
|
Fixes a bug that prevented headers from being set in an ajaxSend callback. Unit test modified.
|
2011-02-07 16:35:32 +01:00 |
|
jaubourg
|
2c77704b14
|
Fixes a typo in the title of the load() unit test.
|
2011-02-05 03:06:21 +01:00 |
|
Anton M
|
08fcde6a59
|
Remove an invalid ajax test and some code that is no longer used by any test.
|
2011-02-05 00:20:23 +01:00 |
|
jaubourg
|
03bad0a960
|
Fixes abort in prefilter. No global event will be fired in that case even if the global option is set to true. Unit test added.
|
2011-02-04 22:19:23 +01:00 |
|
Anton Kovalyov
|
fdd4101fe9
|
Fixes #7945. Make jQuery.param() serialize plain objects with a property named jquery correctly.
|
2011-02-02 00:32:29 +01:00 |
|
jaubourg
|
cb49b4a1b6
|
Fixes #8115. Renames all references to jXHR with jqXHR in the code (like was done in the doc).
|
2011-02-01 16:00:53 +01:00 |
|
jaubourg
|
eb5aab9952
|
Places multiple signature test after all primary callbacks tests.
|
2011-02-01 09:30:52 +01:00 |
|
Dan Heberden
|
af70dee88e
|
Improve $.ajax method signature unit test and placement
|
2011-02-01 00:22:22 -08:00 |
|
Dan Heberden
|
31949fa528
|
Bug 8107; Fix argument handling for $.ajax for multiple method signatues and add test case
|
2011-01-31 19:37:28 -08:00 |
|
jaubourg
|
f43572d3b8
|
Fixes #8095. Properly handles the case where browser cache needs to be bypassed while server-side logic still delivers proper 304 responses. Unit test added.
|
2011-01-31 19:59:53 +01:00 |
|
jaubourg
|
e0b1bb8e3d
|
Script dataType now supports ecmascript mimetypes.
|
2011-01-31 19:14:06 +01:00 |
|
jaubourg
|
f286a716d5
|
Makes sure jsonp callback is not left in the global namespace in case of an early abort (beforeSend). Unit test added.
|
2011-01-31 18:53:44 +01:00 |
|
jaubourg
|
7c9a5e6016
|
Makes sure all converters keys are lowercased before any conversion is taking place: dataTypes' names are now truly case insensitive. Unit test edited.
|
2011-01-31 17:40:27 +01:00 |
|
Anton M
|
389c099df6
|
Fixes #7568. Follow-up fix for #5862. Objects with a length property weren't serialized properly by jQuery.param.
|
2011-01-31 15:58:27 +01:00 |
|
jaubourg
|
d2384ad03a
|
Removed errorThrown test for 404 responses seeing as Safari 3.x XHR sets the statusText as "OK" rather than "Not Found".
|
2011-01-31 11:14:38 +01:00 |
|
jaubourg
|
945ac0d0b1
|
Simplifies the unit test for #8082.
|
2011-01-29 03:08:18 +01:00 |
|
jaubourg
|
85a195c6d5
|
Fixes #8082. Text to script converter now returns text. Unit test added.
|
2011-01-29 01:39:22 +01:00 |
|
jaubourg
|
0e5b341cc0
|
Fixes #5856. Adds document protocol at the beginning of URLs without protocol (thanks go to skrings for the initial pull request). Simplifies cross-domain detection regexp and logic as a consequence. Also took the opportunity to remove an unused variable. Unit test added.
|
2011-01-26 01:36:05 +01:00 |
|
jaubourg
|
325dcdc2ab
|
Fixes #8054 by reverting feature enhancement 5812 (4920). Regexps no longer searches for %3F in url or data to find jsonp callback placeholders.
|
2011-01-26 00:55:39 +01:00 |
|
jaubourg
|
5ca8f0617f
|
Reworks how values of parameters passed to error callbacks are determined. Fixes #8050.
|
2011-01-25 16:08:19 +01:00 |
|
jaubourg
|
dc2e7317a9
|
Replaces "text in-between" technique with a full-fledged one-level transitive search for converters (unit tests added). Also cleans up auto dataType determination and adds converter checks in order to guess the best dataType possible.
|
2011-01-21 03:58:28 +01:00 |
|
jaubourg
|
9ab00a712f
|
Makes sure statusCode callbacks are ordered in the same way success and error callbacks are. Unit tests added.
|
2011-01-20 15:39:30 +01:00 |
|
jaubourg
|
64e1cdbb95
|
Cleans up and simplifies code shared by ajaxPrefilter and ajaxTransport. Removes chainability of ajaxSetup, ajaxPrefilter and ajaxTransport. Also makes sure context is handled properly by ajaxSetup (unit test added).
|
2011-01-20 04:12:15 +01:00 |
|
jaubourg
|
96b00a4935
|
Moves active counter test after all other ajax tests where it should be.
|
2011-01-19 18:44:21 +01:00 |
|
Colin Snover
|
e78d3a7e2d
|
Merge in data_nocollide branch. Fixes #6968, improves unit testing framework checks for leaky stuff.
|
2011-01-17 15:31:43 -06:00 |
|
jaubourg
|
cfca6d3836
|
Fixed the ajax test regarding the jsonp option set to false and added a test to control the prefilter actually does not tamper with the url.
|
2011-01-16 05:36:20 +01:00 |
|
jaubourg
|
0e93b2e24c
|
Revised jsonp unit tests and added a test for when the jsonp option is set to false.
|
2011-01-16 05:27:16 +01:00 |
|
jaubourg
|
8ab23aec2c
|
Fixes #2994. Not finding a transport now fires the error callbacks and doesn't make ajax return false. Had to revise how jsonp and script prefilters & transports work (better separation of concerns). Also took the opportunity to revise jXHR getRequestHeader and abort methods and enabled early transport garbage collection when the request completes.
|
2011-01-16 02:57:39 +01:00 |
|
jaubourg
|
44fc87f66c
|
Fixes #4964. Adds a statusCode object together with a new statusCode method on the jXHR object (deferred behaviour). They accept a map of statusCode/callback(s). Callbacks are fired when the status code of the response correponds to the key (as a success or an error callback depending on how the request completed). Unit tests added.
|
2011-01-13 17:01:25 +01:00 |
|
jaubourg
|
0c51e9d55f
|
Fixes #4897. Added ?? as a context-insensitive placeholder for the callback name of a JSONP request. Unit tests provided.
|
2011-01-12 18:36:00 +01:00 |
|
jaubourg
|
f83cdc3c4c
|
Yet another missing semicolon!
|
2011-01-11 23:43:02 +01:00 |
|
jaubourg
|
6504d4f700
|
Fixes #6230. Added a unit test to control that, since the ajax rewrite, setting the Accept header actually replaced the previous value and didn't append to it (tested in Safari 4.0.4 for which the problem was specifically reported).
|
2011-01-11 23:01:18 +01:00 |
|
jaubourg
|
5a721cf31b
|
Fixes 4825. jQuery.fn.load: use the jXHR's Promise interface to get the actual response in case ajaxSettings contains a dataFilter. Unit test added.
|
2011-01-11 20:02:33 +01:00 |
|
jaubourg
|
84319aa4a3
|
Fixes a race condition in JSONP Local test.
|
2011-01-10 00:52:20 +01:00 |
|
Colin Snover
|
e2941d5a98
|
Update unit tests with a leak detection mechanism for the various jQuery globals and fix all leaks in the tests.
|
2011-01-09 15:58:47 -06:00 |
|
jaubourg
|
8c8bd3bf6a
|
Fixes #5812. =? will be detected even when it has been escaped during data serialization.
|
2011-01-09 21:48:52 +01:00 |
|
jaubourg
|
7bc5386230
|
Simplified cross-domain detection tests.
|
2011-01-09 17:27:29 +01:00 |
|
jaubourg
|
5a5f67800b
|
Fixes #5955. Option crossDomain now forces ajax to consider a request as cross-domain even when it is not. Useful for when servers issue redirects to cross-domain urls. Unit test added.
|
2011-01-09 16:50:13 +01:00 |
|
jaubourg
|
63487505c6
|
Added a test for retrying a request on error using jQuery.ajax(this). Works as intended. Fixes #7461.
|
2011-01-09 06:19:27 +01:00 |
|
jaubourg
|
afefb4f3d2
|
Fixes #7465. Reworked the regexp and associated test for cross-domain detection so that it now includes ports. Added cross-domain detection tests for protocol, hostname and port.
|
2011-01-09 06:01:00 +01:00 |
|
jaubourg
|
d515068ee8
|
Fixes #7868. ResponseText is now properly propagated for error callbacks.
|
2011-01-09 04:53:29 +01:00 |
|
jaubourg
|
69497c3fd7
|
Fixes #7881. Setting contentType to false will prevent the Content-Type header from being sent. Unit test added.
|
2011-01-09 04:28:42 +01:00 |
|
jaubourg
|
368f2441f6
|
Added missing commas.
|
2011-01-07 15:52:58 +01:00 |
|
Colin Snover
|
e56de77df9
|
Cleaning up trailing whitespace again.
|
2011-01-05 15:44:07 -06:00 |
|
Dave Methvin
|
eed3803c98
|
When serializing text, encode all line breaks as CRLF pairs per the application/x-www-form-urlencoded specification. Fixes #6876.
|
2010-12-31 13:56:51 -06:00 |
|
jaubourg
|
6165cc45b7
|
Renamed several ajaxSettings options. Removed cors test, fixed failing cors test.
|
2010-12-31 04:15:09 +01:00 |
|
jaubourg
|
981d1e08eb
|
Removed re-usability from jXHR object (no more open, send & onreadystatechange support). Streamlined the implementation and put it back into ajax.js (removed xhr.js in the process). Went back to a more simple & direct approach to options handling (keeping much room to further minification-related optimizations). Code is cleaner, smaller & faster. Removed & edited unit tests accordingly. All build files have had xhr.js removed.
|
2010-12-31 04:13:40 +01:00 |
|
unknown
|
22e28b01e6
|
Changed dataConverters key format.
|
2010-12-31 04:05:52 +01:00 |
|
Colin Snover
|
3e0cc81504
|
Clean trailing whitespace from all files.
|
2010-12-30 00:34:48 -06:00 |
|
jaubourg
|
974637d639
|
Simplified headers tests: removed multiline headers (support is far too servers & browsers dependant) and made all the tests in a single request.
|
2010-12-11 02:41:39 +01:00 |
|
jaubourg
|
0b0889ceaa
|
Tweaked the headers test to be apache independent and actually work.
|
2010-12-11 02:21:54 +01:00 |
|
jaubourg
|
9fa9a57076
|
Changed document.location to window.location per Ben Alman advice.
|
2010-12-10 07:00:06 +01:00 |
|
jaubourg
|
9b9d270e3d
|
Removed non-standard (and not that useful) xhr emulation methods & reworked the headers test as a consequence.
|
2010-12-10 02:45:08 +01:00 |
|
jaubourg
|
ab3ba4a812
|
Rewrite of the Ajax module by Julian Aubourg. Some (dated) details can be found here: http://oksoclap.com/6Y26bm1ZsB more details are forthcoming. Fixes #7195.
|
2010-12-09 13:34:28 -05:00 |
|
John Resig
|
6c68124928
|
Merge branch 'bug7531' of https://github.com/csnover/jquery into csnover-bug7531
|
2010-12-06 17:22:02 -05:00 |
|
Anton M
|
a2c2d68d7f
|
Add unit test for fix to #7578.
|
2010-11-24 23:35:26 +01:00 |
|
Colin Snover
|
2a0c7d702b
|
Coerce s.url to string before calling replace, since replace is also a method of a Location object. Fixes #7531.
|
2010-11-17 00:59:24 -06:00 |
|
Colin Snover
|
e57b73a0ac
|
Ensure that AJAX requests are actually aborted in all browsers. Fix #7422.
|
2010-11-06 13:52:30 -05:00 |
|
John Resig
|
de58db0cdf
|
Backing out fix for #5803 from 3b50eaca2c .
|
2010-10-25 17:54:27 -07:00 |
|
dmethvin
|
09022e0b09
|
Allow DELETE requests to have a content body, and properly serialize data to the url for HEAD requests. Fixes #7285.
|
2010-10-25 13:06:02 -07:00 |
|
rwldrn
|
3b50eaca2c
|
Fixes #7229 and #5803
|
2010-10-24 12:18:33 -04:00 |
|
jeresig
|
ec462a33af
|
Fix broken Ajax test after recent revert to jQuery.ajax namespace.
|
2010-10-13 00:07:52 -04:00 |
|
jeresig
|
26db3f0933
|
Disable 304/Not Modified Ajax tests in Opera due to lack of suitable workaround. See: http://gist.github.com/599419
|
2010-10-10 18:46:32 -04:00 |
|
John Resig
|
57c046f91c
|
Tweak broken serialize tests from commit 879799fe95 . Thanks to @jaubourg for the catch.
|
2010-09-30 15:40:30 -07:00 |
|
jeresig
|
ea6a4813b7
|
Allow 304/Not Modified tests to complete in Opera.
|
2010-09-27 12:10:00 -04:00 |
|
temp01
|
7862c45ad2
|
Serialize keys with empty arrays/object values in jQuery.param(). Fixes #6481.
|
2010-09-24 16:57:25 -04:00 |
|
John Resig
|
f9f9ee52e1
|
Make sure that #... are trimmed from Ajax request URLs. Fixes #4987.
|
2010-09-22 12:52:44 -04:00 |
|
John Resig
|
ba9e0fc177
|
Use a different workaround for detecting when Opera finds a status 304 page. Fixes #6060.
|
2010-09-21 15:22:34 -04:00 |
|
jeresig
|
c90d609c0d
|
Fixing request data param issue. Thanks to mislav for the patch. Fixes #5123.
|
2010-06-14 23:08:28 -04:00 |
|
malsup
|
d1931a8241
|
Fix for http://dev.jquery.com/ticket/6451
|
2010-06-15 11:02:26 +08:00 |
|
jeresig
|
273822c138
|
Update other remote test URLs as well.
|
2010-03-23 16:24:51 -04:00 |
|
jeresig
|
0fbac16dbe
|
Strip off filename and query string for JSONP Remote test.
|
2010-03-23 16:22:09 -04:00 |
|
jeresig
|
dcf0fa5048
|
More changes to get jQuery in line with JSLint.
|
2010-03-01 21:24:49 -05:00 |
|
Ben Alman
|
3c5b1ca03b
|
Ok, this should actually fix #6041 :)
|
2010-02-06 11:46:44 +08:00 |
|
jeresig
|
54bd004e53
|
Make sure that we don't try to double-encode params using the traditional style. Fixes #6041.
|
2010-02-05 19:43:31 -05:00 |
|
Mike Alup
|
ca90ffb332
|
Provided detailed message for JSON parse errors. Fixes #4435.
|
2010-01-25 18:48:52 -05:00 |
|
John Resig
|
1a14a38ff7
|
Make sure original context is maintained and not the deep extended one. Fixes #5924.
|
2010-01-25 01:08:24 -05:00 |
|
John Resig
|
f91b944cab
|
Objects with length properties weren't getting serialized properly by jQuery.param(). Fixes #5862.
|
2010-01-25 00:46:03 -05:00 |
|
John Resig
|
c639405c4d
|
Don't set the context in .load() as it stops the global ajax events from firing. Fixes #5922.
|
2010-01-24 21:58:32 -05:00 |
|
John Resig
|
155ecf42a0
|
Make sure regular settings object is set as context for all Ajax requests, if none is specified. Fixes #5838.
|
2010-01-16 10:11:01 -05:00 |
|
jeresig
|
05aaa33957
|
Make sure that null params aren't traversed. Fixes #5794.
|
2010-01-13 09:29:01 -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
|
84dd82eb1a
|
Add some abort() Ajax tests. Verifies that #3984 works.
|
2010-01-06 12:13:56 -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 |
|
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 |
|
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 |
|
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
|
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
|
f0c32278b4
|
Just restore window.JSON in the getJSON test, don't try to delete the value.
|
2009-12-03 11:28:49 -05:00 |
|
John Resig
|
c08474580c
|
Re-wrote context Ajax test to use an element instead of an object (a more realistic test and works with the new jQuery.extend logic for cloning object literals).
|
2009-11-17 14:36:10 -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 |
|