• Pop Up Window with Mozilla

    Author
    Topic
    #366899

    I have a strange problem. I have code (heck it is some of the Lounge code) that will work properly in IE but fails in Mozilla0.9.2/Netscape6.2.

    The code consists of a primary page with a link to a javascript on the same page. This link passes a parameter to the script. The script then opens a new window and sets focus. It then passes the parameter to a Perl script. The Perl script processes the parameter and generates a simple html page which is rendered in the new window.

    Well sort of, in IE it renders it properly but in Mozilla browsers it displays raw html. Even more interesting, I can select and copy the raw html from the pop-up window, paste it into a new html file, and then, using the same browser on the same machine render the html properly.

    Sample code follows:

    The link:

    Rule 10
    

    The script:

    function popRule(rule) {
     var rules = open("http:://www.wopr.com/cgi-bin/w3t/rules.pl?Rule="+rule,
       "popRule","resizable=no,top=100,left=100,width=400,height=250");
     if (rules != null) rules.focus();
     if (!rules.opener)
      rules.opener = window
    }
    

    Any ideas?

    Viewing 0 reply threads
    Author
    Replies
    • #570916

      Never mind.
      Typo in the META which prevented rendering in Mozilla, etc.
      Working now.

    Viewing 0 reply threads
    Reply To: Pop Up Window with Mozilla

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: