XmlHttpRequest
Objectives¶
-
Review Asynchronous JavaScript and XML (AJAX).
-
Learn to use the XMLHttpRequest object to implement AJAX.
-
Use
JSONto parse response text to JSON. -
Set and access XMLHttpRequest properties.
Topics¶
- Asynchronous JavaScript and XML (AJAX)
- XMLHttpRequest Object
- Create and Open the Request
- Using
send(): To Dispatch a XMLHttpRequest - Labs
- Using
onreadystatechange - Checking the Response Status with the
statusProperty - Capture Returned Data with
XMLHttpRequest.responseText - Sending POST and Other Request Methods
- Labs