J
J
Hi,
Ajax question: Can I retrieve an HTML page and use the DOM to grab
stuff from the requested page in a similar fashion to an XML page
requested in the same manner?
Details: I'm requesting a web page by:
myRequest.open("GET", "http://www.asite.com/page.html", true);
I can take the response and convert it to a string via:
myRequest.responseText.toString();
So that I can parse it to find a few things on the page that I am
looking for. If I were to retrieve an XML document, I can use the DOM
to grab stuff from the page with ease. Is there an AJAX-esque method
to retrieving an HTML page and using DOM to look for things on the
page? Converting an html page to a string and parsing it with
javascript string methods is hell.
Thanks everyone,
J
Ajax question: Can I retrieve an HTML page and use the DOM to grab
stuff from the requested page in a similar fashion to an XML page
requested in the same manner?
Details: I'm requesting a web page by:
myRequest.open("GET", "http://www.asite.com/page.html", true);
I can take the response and convert it to a string via:
myRequest.responseText.toString();
So that I can parse it to find a few things on the page that I am
looking for. If I were to retrieve an XML document, I can use the DOM
to grab stuff from the page with ease. Is there an AJAX-esque method
to retrieving an HTML page and using DOM to look for things on the
page? Converting an html page to a string and parsing it with
javascript string methods is hell.
Thanks everyone,
J