Click to See Complete Forum and Search --> : creating html dynamically, but...


weekendcoder
12-16-2003, 11:41 AM
constructing a three frame site: left, rtop, rbottom. My driver is on the left, and I my script (successfully) creates html in the rtop, but I need the created html to include another script. Adding the 2nd line causes the site to stall. Any suggestions?

parent.rtop.document.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">');

parent.rtop.document.write('<script src="wowIIdefs.js" language="javascript"></script>');

parent.rtop.document.write('</head><body>');

thanks in advance,
weekendcoder

gil davis
12-16-2003, 11:48 AM
The browser chokes on the script tags. You have to split them up so that it doesn't look like a script tag anymore. Something like:
document.write("<scr" + "ipt>");

fredmv
12-16-2003, 01:17 PM
And for the closing <script> tag:<\/script>

weekendcoder
12-17-2003, 12:08 PM
I took your suggestion on "<\/" for the closing script tag, but still having problems as noted in thread "2 machines IE ...". But now wondered are there any other tags that will need this \?

thanks