By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,382 Members | 1,623 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,382 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <7d**************************@posting.google.com >,
sn******@yahoo.com (Madhav) writes:
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.


escape the / in the </script> tag"

<\/script> instead of using just </script>
--
Randy
All code posted is dependent upon the viewing browser
supporting the methods called, and Javascript being enabled.
Jul 20 '05 #2

P: n/a
sn******@yahoo.com (Madhav) writes:
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
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.