Ajax from Scratch  Asychronous JavaScript XML Create the Response Content
Creating a XML Http Request Object
Assigning the onreadystatechange Method
Send the Http Header
Creating the Request Event Listener Method
Handling the Response Object Response Text innerHTML Response XML XML DOM
* Remove White Space Parse the XML DOM
Create Response Content <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?> <!-- Document  : clients.xml --> <root> <address_book> <clients> <client> <client_id> 1 </client_id> <first_name> Bradley </first_name> <middle_name> Lawrence </middle_name> <last_name> Bingham </last_name> </client>  </clients> </address_book> </root>
Which XML Http Request Object Test for which standard to use IE7+, Firefox, Chrome, Opera, Safari window.XMLHttpRequest  Microsoft Request Object window.ActiveXObject(“Microsoft.XMLHTTP)

Ajax presentation

  • 1.
    Ajax from Scratch Asychronous JavaScript XML Create the Response Content
  • 2.
    Creating a XMLHttp Request Object
  • 3.
  • 4.
  • 5.
    Creating the RequestEvent Listener Method
  • 6.
    Handling the ResponseObject Response Text innerHTML Response XML XML DOM
  • 7.
    * Remove WhiteSpace Parse the XML DOM
  • 8.
    Create Response Content<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?> <!-- Document : clients.xml --> <root> <address_book> <clients> <client> <client_id> 1 </client_id> <first_name> Bradley </first_name> <middle_name> Lawrence </middle_name> <last_name> Bingham </last_name> </client> </clients> </address_book> </root>
  • 9.
    Which XML HttpRequest Object Test for which standard to use IE7+, Firefox, Chrome, Opera, Safari window.XMLHttpRequest Microsoft Request Object window.ActiveXObject(“Microsoft.XMLHTTP)