Rr: window.open() macht Ärger in NS 7 und IE 6

Hi,
beim Testen eines PopUps hat ein Kollege bemerkt, daß NS 7 und IE 6 die Größenangaben nicht beachten. Hattet Ihr mit diesem Problem schonmal zu tun? Wenn ja, wie habt Ihr es gelöst?

Leider kann ich den Fehler bei mir nicht reproduzieren, und der vorgenannte Kollege sitzt in einer anderen Niederlassung, so daß ich leider nicht an seinem Rechner testen kann. Eure Hilfe ist darum um so wichtiger für mich.

Braucht Ihr zusätzliche Angaben zur Lösung? Fragt bitte einfach nach.

Für Eure Hilfe bedanke ich mich im Voraus.
Gruß,
Rr

  1. Hattet Ihr mit diesem Problem schonmal zu tun? Wenn ja, wie habt Ihr es gelöst?

    nö, das hatte ich nocht nicht. aber vielleicht hilft dir dieses kleine beispiel:

    function openWin(adr,winName,options,ratio){
     // parse options
     if (options != null){
      optstr = "resizable,scrollbars";
      // like a car's gear
      if(options >= 1) optstr += ",toolbar";
      if(options >= 2) optstr += ",menubar";
      if(options >= 3) optstr += ",status";
      if(options >= 4) optstr += ",location";
      if(options >= 5) optstr += ",copyhistory";
     }else{
      optstr = "*"; // nonsens for basic window
     }

    // window with ratio
     if(ratio != null){
      if((screenWidth >= 800) && (screenHeight >= 600)){
       x = parseInt((screenWidth * ratio) / 100);
       y = parseInt((screenHeight * ratio) / 100);
      } else {
       // make new window max-size if screen is smaller than 800 x 600
       x = screenWidthAvail;
       y = screenHeightAvail;
      }
      // never make win smaller than 640 x 480
      if(x < 640) x=640;
      if(y < 480) y=480;
      // set win-position to center of screen
      X = (screenWidthAvail / 2) - (x / 2);
      Y = (screenHeightAvail / 2) - (y / 2);
      if (isIE || isGecko){
       optstr += ",width="+x+",height="+y+",top="+Y+",left="+X;
      }else{
       optstr += ",width="+x+",height="+y;
      }
     }
     // open the window
     window.open(adr,winName,optstr);
    }

    viele grüsse
    :o) oli

    1. Hat sich erledigt. Der Kollege verwendet eine Dual Head Grafikkarte (ein Desktop auf zwei Monitoren nebeneinander) und der Treiber dieser Karte macht automatisch eine Anpassung (ich würde sagen eine Verwurstung) der Fenstergröße.
      Danke fürs Zuhören,
      Rr

      Hattet Ihr mit diesem Problem schonmal zu tun? Wenn ja, wie habt Ihr es gelöst?

      nö, das hatte ich nocht nicht. aber vielleicht hilft dir dieses kleine beispiel:

      function openWin(adr,winName,options,ratio){
      // parse options
      if (options != null){
        optstr = "resizable,scrollbars";
        // like a car's gear
        if(options >= 1) optstr += ",toolbar";
        if(options >= 2) optstr += ",menubar";
        if(options >= 3) optstr += ",status";
        if(options >= 4) optstr += ",location";
        if(options >= 5) optstr += ",copyhistory";
      }else{
        optstr = "*"; // nonsens for basic window
      }

      // window with ratio
      if(ratio != null){
        if((screenWidth >= 800) && (screenHeight >= 600)){
         x = parseInt((screenWidth * ratio) / 100);
         y = parseInt((screenHeight * ratio) / 100);
        } else {
         // make new window max-size if screen is smaller than 800 x 600
         x = screenWidthAvail;
         y = screenHeightAvail;
        }
        // never make win smaller than 640 x 480
        if(x < 640) x=640;
        if(y < 480) y=480;
        // set win-position to center of screen
        X = (screenWidthAvail / 2) - (x / 2);
        Y = (screenHeightAvail / 2) - (y / 2);
        if (isIE || isGecko){
         optstr += ",width="+x+",height="+y+",top="+Y+",left="+X;
        }else{
         optstr += ",width="+x+",height="+y;
        }
      }
      // open the window
      window.open(adr,winName,optstr);
      }

      viele grüsse
      :o) oli