<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Untitled Document</title>
<script language="JavaScript" type="text/JavaScript" src="ve3d.js"
</script>
</head>
<body>
.......
.......
.......
</body>
</html>
but when I try and load a window and create the same text dynamically
the .js file reports syntax errors at arbitrary points ( eg closing
brackets )and the scripts cant be called from the body of the page.
The code Im using to generate the page follows.
Its just the above code with a .document.write before each line. As
you can see Ive split the </script> to </scr'+'ipt>' tag so thats not
the problem.
VE3DWindow = window.open('', 'VE3DWin',
'resizable=yes,width=400,height=400')
VE3DWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01 Transitional//EN"')
VE3DWindow.document.write('"http://www.w3.org/TR/html4/loose.dtd">')
VE3DWindow.document.write('<html>')
VE3DWindow.document.write('<head>')
VE3DWindow.document.write('<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">')
VE3DWindow.document.write('<title>Untitled Document</title>')
VE3DWindow.document.write('<script language="JavaScript"
type="text/JavaScript" src="ve3d.js"></scr'+'ipt>')
VE3DWindow.document.write('</head>')
VE3DWindow.document.write('<body>')
.........
.........
.........
VE3DWindow.document.write('</body>')
VE3DWindow.document.write('</html>')
VE3DWindow.document.close()
Everything works fine in NN6.2 but I'm getting random syntax errors in
the js script in IE6.
It's the content of the ....... section that is the reason to create
the thing dynamically.
Any ideas appreciated, Jake