slide8
Dynamic Connections Without Leaving Home: XMLHttpRequest
  • Make the previous demo come alive with server content:    
  • An "in-situ" connection
  • xmlhttpBook = new XMLHttpRequest()
    xmlhttpBook.open('GET', path, false);
    xmlhttpBook.send(null);
    var xmlResponse = xmlhttpBook.responseXML;
    
  • Manipulate the existing document with the returned data using DOM 1
  • var resultBookSet = xmlResponse.getElementsByTagName('BookSet')[0];
    searchBookSet.parentNode.replaceChild(resultBookSet, searchBookSet);
    
Honolulu, HI
05/09/02
<< slide7 slide9 >>