Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Dec 2001
    Location
    Ontario, Canada
    Posts
    382
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pop Up Window with Mozilla

    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:
    <pre>Rule 10
    </pre>

    The script:
    <pre>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
    }
    </pre>

    Any ideas?
    <big><big><font color=blue>Ian</font color=blue></big></big>
    Admin

  2. #2
    3 Star Lounger
    Join Date
    Dec 2001
    Location
    Ontario, Canada
    Posts
    382
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Pop Up Window with Mozilla

    Never mind.
    Typo in the META which prevented rendering in Mozilla, etc.
    Working now.
    <big><big><font color=blue>Ian</font color=blue></big></big>
    Admin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •