<SCRIPT>........</SCRIPT> tags in NN4.75

M

Madhav

I have the following statements in my script.
----------------------------------------------------------
textToWrite = "<HTML> \n" +
"<HEAD> \n" +
"<TITLE>Calendar</TITLE> \n" +
"<SCRIPT LANGUAGE=\"JavaScript1.2\"SRC=\"popWin.js\">"+
"</SCRIPT> \n" +
"</HEAD> \n" +
"<BODY> \n" ;
textToWrite += "<\BODY>\n" +
"</HTML>\n";


var popWin = window.open("","PopUp");

popWin.opener = self;
popWin.document.write(textToWrite);
popWin.document.close();
------------------------------------------------------------
Everything except the <SCRIPT>...</SCRIPT> appears in the new popup
window. This works fine in NN7 and IE5 but not in NN4.75. Because it
is not showing the <SCRIPT>..</SCRIPT> tags......I'm not able to call
functions present in "popWin.js" in the popup window.

Could anyone tell me what needs to be done to make this work.
 
L

Lasse Reichstein Nielsen

I have the following statements in my script.
----------------------------------------------------------
textToWrite = "<HTML> \n" +
"<HEAD> \n" +
"<TITLE>Calendar</TITLE> \n" +
"<SCRIPT LANGUAGE=\"JavaScript1.2\"SRC=\"popWin.js\">"+

I'm missing a space before "SRC".

The language attribute is deprecated. use
type="text/javascript"
instead.
Everything except the <SCRIPT>...</SCRIPT> appears in the new popup
window.

What do you mean by "appears"? You generate no visible content at all
(except the title), so how do you tell the difference between the script
appearing but not working, and not appearing at all?


/L
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top