hey all,
I am trying to do something that is clearly out of my skill level! I am attempting to hit a page that has a form (the page is hosted by someone else), fill it out with premade values and submit the form with code, and then pull some data from the resulting HTML page. The first part of this works great, but I can not figure out how to get the data from the resulting page. The data on that page is taged with id values. My code for opening the window, filling out and submitting the form is the following:
<SCRIPT language=”JavaScript”>
function submitform(){return(“<body onload=’document.calc.submit()’><form action=’
}
var newWin = open(“”, “win”, “width=900,height=900”);
var newDoc = newWin.document;
newDoc.open(“text/html”);
newDoc.write(submitform());
newDoc.close();
</script>
My thought was that I could simply use the newDoc object and getElementById to pull out the data I need, but it doesn’t seem to work. Any thoughts or suggestions?
Thanks in advance!
Pete