get HTTP Document with XHR
faj <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Dear all, Is it possible to get the HTML dcoument, i.e. getWebNavigation().document, after loading the page with XHR? The current code uses the loadURI() to load a page. However, to be able to insert custom http request to the header, the new code needs to use the the XMLHttpRequest instead. After the page is loaded, the following information are needed: var doc = getWebNavigation().document; .... doc.childNodes.length doc.childNodes[...].nodeType doc.childNodes[...].textContent doc.childNodes[...].tagName doc.childNodes[...].attributes[...].... etc. Your help is appreciated. Thanks, -faj -- View this message in context: http://www.nabble.com/get-HTTP-Document-with-XHR-tp22554215p22554215.html Sent from the Mozilla - DOM mailing list archive at Nabble.com.