469,632 Members | 1,732 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,632 developers. It's quick & easy.

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

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
2 2016
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
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.

Similar topics

6 posts views Thread by Mike Daniel | last post: by
1 post views Thread by D. Shane Fowlkes | last post: by
2 posts views Thread by Jeffrey T. | last post: by
21 posts views Thread by hemant.singh | last post: by
4 posts views Thread by Alex Maghen | last post: by
2 posts views Thread by bilaribilari | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.