Richard Gibson
a938d7b128
No ticket: compress ajax. Close gh-1041.
2012-11-25 13:07:46 -05:00
jaubourg
8bae5e19af
Uses an additive approach to generating anti-cache parameters rather than a timestamp. Fixes #12550
2012-10-16 16:08:13 -04:00
Ben Truyman
ce5784a480
Handle a falsy URL in the settings object for jQuery.ajax. Fixes #10093 , Closes gh-979
2012-10-16 11:37:15 -04:00
jaubourg
40f9ab9cdf
better, more maintainable version of the prefilters execution and transport selection
2012-10-16 09:40:42 -04:00
Richard Gibson
da3ff3afe4
Fix #12637 : restore 1.8.1 ajax crossDomain logic. Close gh-944.
2012-10-03 21:07:50 -04:00
Richard Gibson
15b5dbfe23
Fix #12229 , size/consistency improvements. Close gh-887.
2012-09-18 18:04:31 -04:00
Dave Methvin
05337e78fa
Revert "Fix #11586 . Ajax DELETE ain't got no body, so data goes to its URL."
...
This reverts commit c01e022f33
.
We actually changed DELETE to accept a body on purpose, see http://bugs.jquery.com/ticket/7285 .
2012-08-24 11:59:01 -04:00
Dave Methvin
c01e022f33
Fix #11586 . Ajax DELETE ain't got no body, so data goes to its URL.
2012-08-23 21:33:29 -04:00
jaubourg
b292c4c2df
Calling load with null as the data parameter now properly issues a GET request, not a POST request. Unit tests added. Fixes #12234 .
2012-08-16 16:45:18 +02:00
Timmy Willison
beeab4d126
Quote reserved keyword 'throws' to satisfy yui compressor. Fixes #12158 .
2012-07-30 10:44:47 -04:00
Richard Gibson
c14a6b385f
Clean up regexen; use common regex for numbers. Close gh-862.
2012-07-22 22:23:32 -04:00
jaubourg
ced5e9037a
Extracts the serialization code from the ajax module so that alternative ajax implementations can use it without the need for the whole ajax module to be included in the build.
2012-07-13 09:47:43 +02:00
Chris Faulkner
7b5ffcdac8
Fixes a variety of typographical problems. Closes gh-853
2012-07-11 09:46:21 -04:00
Mike Sherov
8f01b92b8f
Follow the style guide, lose 72 bytes! Closes gh-840.
2012-07-09 21:39:22 -04:00
Richard Gibson
a101e81bde
Interim take on cross-module variables, closes gh-817.
2012-06-15 21:01:44 -04:00
Rick Waldron
7c23b77af2
Strips IIFEs from modules; Always require built jQuery for tests.
2012-06-04 12:48:18 -04:00
Richard Gibson
742872984e
Fix #11743 : Don't mask script errors in jQuery.ajax, closes gh-795.
2012-05-31 08:31:13 -07:00
Oleg
bab6f5355c
-8 bytes
2012-05-04 00:18:08 +04:00
jaubourg
9cb1ab436d
Fixes the parameters given to load callback when the request errors.
2012-05-02 02:29:12 +02:00
Oleg
95291b44e6
jQuery.fn.load optimization
2012-05-01 14:47:14 -04:00
Oleg
6bed348a00
jQuery.ajaxSetup() data is merged with params. Fixes #10524
2012-05-01 14:39:45 -04:00
tsinha
36d2d9ae93
Fix #8653 , .param() undefined/null values become empty strings
2012-04-05 11:06:54 -04:00
jaubourg
03c5836fa1
Merge branch '1.8/#11010/Deferred' into 1.8pre
2012-04-03 14:19:27 +02:00
jaubourg
914df9cb42
For much improved consistency, jqXHR.abort() sets a default statusText of 'canceled' right until after beforeSend has been called (in which case it reverts to the default of 'abort'): now all early aborts have a statusText of 'canceled'.
2012-04-02 02:04:46 +02:00
jaubourg
395612bb15
$.ajax now always returns an object implementing the Promise interface. Fixes #10944 . Unit tests amended.
...
For back-compat, in case of an early abort, callbacks passed in the options are not called (while subsequent callbacks attached to the returned Promise are).
For early abort triggered by returning false in beforeSend, statusText is "canceled".
2012-04-02 01:54:19 +02:00
jaubourg
a41f240674
Makes Deferred implementation truly Promise/A compliant. Unit tests amended. Actually few changes required in jQuery's own source and we gained 8 bytes minified gzipped \o/.
2012-04-02 01:29:39 +02:00
jaubourg
bd56456b1e
Fixes #4624... 3 years later, people!
2012-03-07 17:08:59 +01:00
presbrey
1326510324
fix prefilter comment typo
2012-01-22 14:53:50 -05:00
Mike Sherov
135bb4ff81
Add undef:true to JSHint now that it understands hoisting
...
also add smarttabs:true and fix some smarttabs spacing issues
2012-01-19 22:36:08 -05:00
Rick Waldron
d828996478
Fix #10978 : Let jQuery.param() accept non-native constructed objects.
2012-01-12 20:14:51 -05:00
Mike Sherov
98386cfd77
Fix #10692 . JSLint is dead! Long live JSHint!
...
Still needs this sizzle PR: https://github.com/jquery/sizzle/pull/82
2011-12-08 21:04:57 -05:00
Rick Waldron
166b9d252a
Fix #10466 . jQuery.param() should treat object-wrapped primitives as primitives.
2011-12-06 16:02:54 -05:00
Rick Waldron
327bc07c54
Landing pull request 604. Updates bind to on in src/ajax.js. Fixes #10817 .
...
More Details:
- https://github.com/jquery/jquery/pull/604
- http://bugs.jquery.com/ticket/10817
2011-11-17 15:02:38 -05:00
Dave Methvin
c3600e261b
Take 2 on "Fix ajax to always expect an Error object, per #10646."
...
We can't use jQuery.error to rethrow anymore since it constructs a new Error from its supposedly-string arg. Also, older IE stringifies Error objects into "[object Error]" so I've loosened the unit test criteria.
This reverts commit 586fb05919
.
2011-11-08 15:52:30 -05:00
Dave Methvin
d8e2b4b6e4
Revert "Catch one more place where a plain-text error was thrown."
...
This reverts commit cc4a999648
.
2011-11-08 15:52:29 -05:00
Dave Methvin
cc4a999648
Catch one more place where a plain-text error was thrown.
2011-11-08 10:09:53 -05:00
Dave Methvin
586fb05919
Fix ajax to always expect an Error object, per #10646 .
2011-11-08 09:42:08 -05:00
Rick Waldron
bad83b39ce
Cleanup spacing in ajax.js. Fixes #10601
2011-10-27 15:26:37 -04:00
Rick Waldron
a9f1346c16
Core styleguide cleanup. Fixes #10586
2011-10-26 14:58:05 -04:00
jaubourg
4092e3d275
$.Callbacks, $.Topic and notify/progress on $.Deferred.
2011-09-19 15:42:30 -04:00
Dave Methvin
8cabdcd122
Use jdalton's shorter sequence for the chars.
2011-08-23 08:55:41 -04:00
Dave Methvin
9b174520cc
Use a semantic name for the variable.
2011-08-23 08:47:34 -04:00
Dave Methvin
771e637a51
Fixes #10098 . Avoid a slashy-starry char sequence in literal strings to evade faulty script compressors.
2011-08-22 22:32:06 -04:00
Dave Methvin
2e298d92db
Merge pull request #431 from DenisKnauf/master
...
input type=datetime-local (ajax doesn't support it, yet)
2011-08-04 14:51:43 -07:00
jaubourg
0ed99097bd
Fixes #9854 : propagates native statusText onto jqXHR.statusText. statusText in callbacks is still normalized. Unit test added.
2011-07-23 02:39:12 +02:00
jaubourg
1d220cdd55
Makes sure that status -1 (used when an internal error occured) will not tag jqXHR.readyState as complete (4).
2011-07-23 02:17:46 +02:00
jaubourg
e6a99fdb0e
Fixes #9887 : ajax now supports circular references into objects passed as context. Prefilter and transport developpers should add their own custom option into flatOptions when needed. Unit test added.
2011-07-23 02:10:17 +02:00
Denis Knauf
bb7d98f018
input type=datetime-local support for ajax.
2011-07-07 12:13:10 +02:00
jaubourg
e6f8951983
Fixes #9632 . Adds res:// protocol to the list of local protocols.
2011-07-01 02:18:05 +02:00
jaubourg
e83fcdcb02
Fixes #9682 . Removes data from the options for request with no content so that it is not used again in case of a retry. Unit test added.
2011-07-01 02:11:26 +02:00