- Dynamic Connections Without Leaving Home
- 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;
var resultBookSet = xmlResponse.getElementsByTagName('BookSet')[0];
searchBookSet.parentNode.replaceChild(resultBookSet, searchBookSet);