[thelist] Brain phart
John Hicks
johnlist at gulfbridge.net
Sat May 27 08:47:36 CDT 2006
Beach Computers wrote:
>
> 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>
> ///////////////////////////////////
You are generating server code on the client's browser. That's not very
secure to start with, and how do you expect to execute it?
--J
More information about the thelist
mailing list