Appendix G (^) ❘ 539
bapp07.indd 02/17/2015 Page 539
error A callback function that is exe-
cuted if the AJAX request fails.
The callback function has the fol-
lowing three arguments: jqXHR,
errorType, and errorThrown.
The errorType argument can
contain any of the following
values: null, 'timeout',
'error', 'abort', and
'parsererror'.
The errorThrown argument con-
tains the HTTP status if an HTTP
error were thrown, such as "Not
Found" or "Internal Server
Error".
Function
global Whether to trigger the global
AJAX event handlers for the
request, for example, the handlers
set by the various AJAX Event
methods.
Default value: true
Boolean
headers An object of additional headers
to include in the AJAX request.
Headers should be specifi ed in
key, value pairs where the key is
the name of the header, and the
value is the header’s value.
Default value: {}
Object
ifModified Allows the request to be success-
ful only if the request has been
modifi ed since the last request.
This is determined by checking
the time specifi ed in the Last-
Modified HTTP header.
Default value: false (ignore the
Last-Modifi ed header).
Boolean
continues
http://www.it-ebooks.info
elliott
(Elliott)
#1