J
jiverbean
Hi group,
I thought of writing to this group earlier to see my problem fixed,
but I have tried a few techniques, and browsers, and here are my
findings. Comments on other browsers are welcome.
My script generates a new document loaded into a new window based on
the contents of a form. Of the form content, there is a checkbox to
include a javascript generated quote from another site.
So:
var newPage = "<html><body>";
newPage += '<img src="logo.gif">';
if (form.quote.checked) { newPage += '<script type="text/javascript"
src="http://www.brainyquote.com/quote.js"></script>' }
newPage += "</body></html>
create new Window
write to newWindow
I tested the script with Mozilla 2.0.0.4, IE 7, Safari 3.0.2, and
Netscape 9.0b1 on WinXP
Netscape and Mozilla execute the script in the new window, but refuse
to display the rest of the generated page.
Internet Explorer barks on the </script> tag, so I included <script
src=... />, and only Safari executes the script as expected.
The scripted page is available at http://www.aibiver.com/html/start.html
Ta
jiverbean
Luxembourg
I thought of writing to this group earlier to see my problem fixed,
but I have tried a few techniques, and browsers, and here are my
findings. Comments on other browsers are welcome.
My script generates a new document loaded into a new window based on
the contents of a form. Of the form content, there is a checkbox to
include a javascript generated quote from another site.
So:
var newPage = "<html><body>";
newPage += '<img src="logo.gif">';
if (form.quote.checked) { newPage += '<script type="text/javascript"
src="http://www.brainyquote.com/quote.js"></script>' }
newPage += "</body></html>
create new Window
write to newWindow
I tested the script with Mozilla 2.0.0.4, IE 7, Safari 3.0.2, and
Netscape 9.0b1 on WinXP
Netscape and Mozilla execute the script in the new window, but refuse
to display the rest of the generated page.
Internet Explorer barks on the </script> tag, so I included <script
src=... />, and only Safari executes the script as expected.
The scripted page is available at http://www.aibiver.com/html/start.html
Ta
jiverbean
Luxembourg