(^540) ❘ APPENDIX G AJAX METHODS
bapp07.indd 02/17/2015 Page 540
isLocal Allows the current environment to
be recognized as a local environ-
ment. The following protocols are
currently recognized by jQuery as
being local: file, *-extension,
and widget.
If this option requires modifi ca-
tion, jQuery recommends doing
so once in the $.ajaxSetup()
method.
Boolean
jsonp Overrides the callback function
name in a jsonp request. This
value will be used instead of
'callback' in the 'callback=?'
part of the query string in the URL
for a GET or POST request. So
{jsonp:'onJsonPLoad'} would
result in onJsonPLoad=? sent on
to the server as part of the URL.
String
jsonpCallback Used to specify a callback function
for a JSONP request. The name
specifi ed here will be used instead
of the randomly generated name
created by jQuery for this purpose
by default.
String,
Function
mimeType A MIME type you want to use to
override the default XHR MIME
type.
String
password A password to use in response
to an HTTP access authentication
request.
String
processData By default, data passed in to the
data option will be processed and
transformed into a query string,
fi tting to the default content-type
application/x-www-form-
urlencoded; charset=URF-8. If
you want to send DOMDocuments
or other nonprocessed data, set
this option to false.
Default value: true
Boolean
(continued)
http://www.it-ebooks.info
elliott
(Elliott)
#1