View Single Post
Old 11-07-2002, 09:09 PM   #1 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
what the hell is up with this?

javascript seems to have gone a little silly..

im trying to put a nested script statement in my asp page code, i.e.

Code:
<%
response.write("this is an asp page")
%>

<script language="javascript">

x = window.open("about:blank", etc);
x.document.write("<html><body> ..etc");
x.document.write("<script language=javascript>");
x.document.write("function y(){ return x; } ");
x.document.write("</script>");
</script>
now this crashed in asp caused it says "can't have nested script statements.."

so.. i trick it like this:
Code:
x.document.write("<scri");
x.document.write("pt language=javascript>");
//etc...
and this really messes things up
someone try it and tell me why
__________________
-- bloomberg.
abc123 is offline   Reply With Quote