[thelist] Brain phart
Beach Computers
Groups at beachcomp.com
Fri May 26 10:24:43 CDT 2006
And the brain locks up....
I can not figure this out for the life of me.
I need to call codejs.asp via the code contained in view.asp.
But, I have all sorts of syntax issues.
Any ideas would be appreciated!
///////////////codejs.asp////////////
document.write('<%');
document.write('Dim objXMLHTTP, xml');
document.write('Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")');
document.write('xml.setTimeouts 5000, 5000, 15000, 15000');
document.write('xml.Open "GET", "http://domain.com/data.asp", False');
document.write('xml.Send');
document.write('Response.Write xml.responseText');
document.write('Set xml = Nothing');
document.write('%>');
//////////////////////////////////////
/////////////view.asp/////////////
<center>
<SCRIPT LANGUAGE="JavaScript"
SRC="http://domain.com/codejs.asp"></SCRIPT>
</center>
///////////////////////////////////
Dave
More information about the thelist
mailing list