I probably am not describing what I want to do very well. I'm using the
method described in http://jibbering.com/2002/4/httprequest.html to
obtain an html document generated by a cgi script. I would like to use
the DOM access methods, like getelmentbyid and/or loop through elements
included in the html.
As shown in the example, I do:
xmlhttp.open("GET", "/cgi-bin/getall.cgi",true);
and
var stringData = xmlhttp.responseText;
Now that stringData is truely a string of the entire html document. I
know I can parse the document manually but I was sort of hoping I could
stuff it into a document. I also recognize it would be possible to have
the cgi generate an xml document which I could parse easily, however the
eventual goal is to take the output of a proprietary cgi program that
spits out formatted html.
So am I barking up the wrong tree or is there a way to get there from here?
Thanks,
Jim.