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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Madhav

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

    I have the following statements in my script.
    ----------------------------------------------------------
    textToWrite = "<HTML> \n" +
    "<HEAD> \n" +
    "<TITLE>Calenda r</TITLE> \n" +
    "<SCRIPT LANGUAGE=\"Java Script1.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(textToWr ite);
    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.
  • HikksNotAtHome

    #2
    Re: &lt;SCRIPT&gt;. .......&lt;/SCRIPT&gt; tags in NN4.75

    In article <7d8781fb.03063 01946.14b7d697@ posting.google. com>,
    snmadhav@yahoo. com (Madhav) writes:
    [color=blue]
    >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.[/color]

    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.

    Comment

    • Lasse Reichstein Nielsen

      #3
      Re: &lt;SCRIPT&gt;. .......&lt;/SCRIPT&gt; tags in NN4.75

      snmadhav@yahoo. com (Madhav) writes:
      [color=blue]
      > I have the following statements in my script.
      > ----------------------------------------------------------
      > textToWrite = "<HTML> \n" +
      > "<HEAD> \n" +
      > "<TITLE>Calenda r</TITLE> \n" +
      > "<SCRIPT LANGUAGE=\"Java Script1.2\"SRC= \"popWin.js\">" +[/color]

      I'm missing a space before "SRC".

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

      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 - lrn@hotpop.com
      Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
      'Faith without judgement merely degrades the spirit divine.'

      Comment

      Working...