git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added support for "first option is auto-selected in a drop-down" functionality.
[jquery.git]
/
src
/
ajax
/
ajax.js
diff --git
a/src/ajax/ajax.js
b/src/ajax/ajax.js
index
9c9a5df
..
4fb63c0
100644
(file)
--- a/
src/ajax/ajax.js
+++ b/
src/ajax/ajax.js
@@
-408,9
+408,6
@@
jQuery.extend({
});
},
});
},
- // timeout (ms)
- //timeout: 0,
-
/**
* Set the timeout in milliseconds of all AJAX requests to a specific amount of time.
* This will make all future AJAX requests timeout after a specified amount
/**
* Set the timeout in milliseconds of all AJAX requests to a specific amount of time.
* This will make all future AJAX requests timeout after a specified amount
@@
-637,10
+634,6
@@
jQuery.extend({
// Set header so the called script knows that it's an XMLHttpRequest
xml.setRequestHeader("X-Requested-With", "XMLHttpRequest");
// Set header so the called script knows that it's an XMLHttpRequest
xml.setRequestHeader("X-Requested-With", "XMLHttpRequest");
- // Make sure the browser sends the right content length
- if ( xml.overrideMimeType )
- xml.setRequestHeader("Connection", "close");
-
// Allow custom headers/mimetypes
if( s.beforeSend )
s.beforeSend(xml);
// Allow custom headers/mimetypes
if( s.beforeSend )
s.beforeSend(xml);
@@
-792,7
+785,7
@@
jQuery.extend({
// Get the JavaScript object, if JSON is used.
if ( type == "json" )
// Get the JavaScript object, if JSON is used.
if ( type == "json" )
- eval( "data = " + data );
+ data = eval("(" + data + ")");
// evaluate scripts within html
if ( type == "html" )
// evaluate scripts within html
if ( type == "html" )