Web Development with jQuery®

(Elliott) #1

Appendix G (^) ❘ 537
bapp07.indd 02/17/2015 Page 537
contentType The MIME type of data being sent
to the server.
If a contentType is explicitly set,
then it is always sent to the server.
The character set is defi ned as
UTF-8 by the W3C specifi cation.
Using a different character set will
not force the browser to change
the encoding sent back to the
server.
Default value:
application/x-www-form-
urlencoded; charset=UTF-8
String
context The object provided to this option is
used to set the context of all AJAX-
related callbacks.
Default value: an object used to call
$.ajaxSettings() merged with
the settings passed to $.ajax().
Object
converters An object that specifi ed dataType
to dataType conversions. Each
data type references a han-
dler capable of processing that
response.
Default value:
{
"* text" :
window.String,
"text html" : true,
"text json" :
$.parseJSON
"text xml" : $.parseXML
}
Object
crossDomain Used to force or prevent a cross-
domain request.
The default value is false for
same-domain requests and true
for cross-domain requests.
Boolean
continues
http://www.it-ebooks.info

Free download pdf