AJAX - The Complete Reference

(avery) #1

654 Ajax: The Complete Reference


XMLHttpRequest (Continued)
and cross-site scripting, 316–320
degradation of, 109
disabling, 73
features of, 101
in Firefox browser, 73, 105–107
onProgress handler, 105–107
partial responses in, 106–107
readyState, 106–107
GET request, 79–81
HEAD request, 84–86
headers, 82–84
hijacking of, 316–320
implications of, 108–113
instantiation, 64
and Internet Explorer, 91
in Internet Explorer, 66, 73
and JavaScript, 3
and libraries, 109
and memory leaks, 110–113
methods of, 62–63
and MIME types, 102–103, 607
management of, 102–103
and responseXML, 95
in Mozilla, 108
for multipart responses, 103–105
and network problems, 108
onProgress handler for, 105–107
in Opera, 73
partial responses in, 106–107
POST request, 81–84
properties of, 62–63
and readyState, 86–90, 106–107
and request headers, 82–84
requests, 74–79
asynchronous, 77–79
GET request, 79–81
HEAD request, 84–86
management of, 109
responses to, 86–97
readyState, 86–90
responseText, 92
responseXML, 92–97
statusText, 90–92
and responseText, 92
and responseXML, 92–97
in Safari, 73

and statusText, 90–92
synchronous requests, 74–77
and user interfaces, improvements in, 109
and Web Services, 500–502
and wrapper function, 73–74
XOR operator, 570
XPath, 160–163
XSD (See Schema)
XSL file, 164
XSLT (eXtensible Style Language
Transformations):
and response formats, 163–167
transforming responses with, 163–167
XSS (See Cross-site scripting)
X-www-form-urlencoded format
(See Standard encoding)

YY
Yahoo:
on caching, 270
and Oddpost, 13
Yahoo User Interface Library (YUI), 201–211
and AjaxTCR library, 179
connection handling with, 209–211
Connection Manager, 202–211
and Content-Type header, 207
features of, 206–208, 213
file uploading with, 208–209
“Hello World” example, 205–206
and POST method, 207
request syntax, 203–205
response syntax, 205
YAML (YAML Ain’t Markup Language), 136–142
data formats, 136–142, 149–150
encoded text, 140–142
plain text, 138–139
encoded text, 140–142
and libraries, 196
plain text, 138–139
and response formats, 149–150
text responses, 149–150
YUI (See Yahoo User Interface Library)

ZZ
0 value, 88, 557
Zip code validation, 386–394
Free download pdf