Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
cb0fbbba
Commit
cb0fbbba
authored
Nov 17, 2006
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return XMLHttpRequest from $.ajax() to allow aborting etc.
parent
c119a80e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
ajax.js
src/ajax/ajax.js
+8
-1
No files found.
src/ajax/ajax.js
View file @
cb0fbbba
...
@@ -586,6 +586,10 @@ jQuery.extend({
...
@@ -586,6 +586,10 @@ jQuery.extend({
* means of making AJAX requests using jQuery. $.ajax() takes one property,
* means of making AJAX requests using jQuery. $.ajax() takes one property,
* an object of key/value pairs, that're are used to initalize the request.
* an object of key/value pairs, that're are used to initalize the request.
*
*
* $.ajax() returns the XMLHttpRequest that it creates. In most cases you won't
* need that object to manipulate directly, but it is available if you need to
* abort the request manually.
*
* These are all the key/values that can be passed in to 'prop':
* These are all the key/values that can be passed in to 'prop':
*
*
* (String) type - The type of request to make (e.g. "POST" or "GET").
* (String) type - The type of request to make (e.g. "POST" or "GET").
...
@@ -701,7 +705,7 @@ jQuery.extend({
...
@@ -701,7 +705,7 @@ jQuery.extend({
* });
* });
*
*
* @name $.ajax
* @name $.ajax
* @type
undefined
* @type
XMLHttpRequest
* @param Hash prop A set of properties to initialize the request with.
* @param Hash prop A set of properties to initialize the request with.
* @cat AJAX
* @cat AJAX
*/
*/
...
@@ -836,6 +840,9 @@ jQuery.extend({
...
@@ -836,6 +840,9 @@ jQuery.extend({
// Send the data
// Send the data
xml
.
send
(
s
.
data
);
xml
.
send
(
s
.
data
);
// return XMLHttpRequest to allow aborting the request etc.
return
xml
;
},
},
// Counter for holding the number of active queries
// Counter for holding the number of active queries
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment