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
797ccbaf
Commit
797ccbaf
authored
Nov 18, 2006
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Heavily improved documentation for $.ajax, but may still need some fixes
parent
cb0fbbba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
ajax.js
src/ajax/ajax.js
+22
-7
No files found.
src/ajax/ajax.js
View file @
797ccbaf
...
@@ -583,22 +583,37 @@ jQuery.extend({
...
@@ -583,22 +583,37 @@ jQuery.extend({
/**
/**
* Load a remote page using an HTTP request. This function is the primary
* Load a remote page using an HTTP request. This function is the primary
* means of making AJAX requests using jQuery. $.ajax() takes one property,
* means of making AJAX requests using jQuery.
* 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
* $.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
* need that object to manipulate directly, but it is available if you need to
* abort the request manually.
* abort the request manually.
*
*
* These are all the key/values that can be passed in to 'prop':
* Please note: Make sure the server sends the right mimetype (eg. xml as
* "text/xml"). Sending the wrong mimetype will get you into serious
* trouble that jQuery can't solve.
*
*
* (String) type - The type of request to make (e.g. "POST" or "GET").
* Supported datatypes (see dataType option) are:
*
* "xml": Returns a XML document that can be processed via jQuery.
*
* "html": Returns HTML as plain text, included script tags are evaluated.
*
* "script": Evaluates the response as Javascript and returns it as plain text.
*
* "json": Evaluates the response as JSON and returns a Javascript Object
*
* $.ajax() takes one property, an object of key/value pairs, that are
* used to initalize the request. These are all the key/values that can
* be passed in to 'prop':
*
*
* (String) url - The URL of the page to request.
* (String) url - The URL of the page to request.
*
*
* (String) type - The type of request to make (e.g. "POST" or "GET"), default is "GET".
*
*
* (String) dataType - The type of data that you're expecting back from
* (String) dataType - The type of data that you're expecting back from
* the server (e.g. "xml", "html", "script", or "json").
* the server. No default: If the server sends xml, the responseXML, otherwise
* the responseText is is passed to the success callback.
*
*
* (Boolean) ifModified - Allow the request to be successful only if the
* (Boolean) ifModified - Allow the request to be successful only if the
* response has changed since the last request, default is false, ignoring
* response has changed since the last request, default is false, ignoring
...
@@ -606,10 +621,10 @@ jQuery.extend({
...
@@ -606,10 +621,10 @@ jQuery.extend({
*
*
* (Number) timeout - Local timeout to override global timeout, eg. to give a
* (Number) timeout - Local timeout to override global timeout, eg. to give a
* single request a longer timeout while all others timeout after 1 seconds,
* single request a longer timeout while all others timeout after 1 seconds,
* see $.ajaxTimeout
* see $.ajaxTimeout
()
*
*
* (Boolean) global - Wheather to trigger global AJAX event handlers for
* (Boolean) global - Wheather to trigger global AJAX event handlers for
* this request, default is true. Set to
tru
e to prevent that global handlers
* this request, default is true. Set to
fals
e to prevent that global handlers
* like ajaxStart or ajaxStop are triggered.
* like ajaxStart or ajaxStop are triggered.
*
*
* (Function) error - A function to be called if the request fails. The
* (Function) error - A function to be called if the request fails. The
...
...
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