| Autor |
Beitrag |
Marco D.
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Fr 09.03.07 16:34
Im FF klappt's. Im IE gibt es eine Fehlermeldung in Zeile 350 - Zeichen 2.
Quelltext 1: 2: 3:
| function PopUp(url,title,height,width) { window.open(url,title,'toolbar=no, statusbar=no, height=' + height + ',width=' + width); } //hier ist Zeile 350 O_o |
Woran liegt's?
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Regan
      
Beiträge: 2157
Erhaltene Danke: 72
Java (Eclipse), Python (Sublimetext 3)
|
Verfasst: Fr 09.03.07 16:39
Marco D. hat folgendes geschrieben: | Im FF klappt's. Im IE gibt es eine Fehlermeldung in Zeile 350 - Zeichen 2.
Quelltext 1: 2: 3:
| function PopUp(url,title,height,width) { window.open(url,title,'toolbar=no, statusbar=no, height=' + height + ',width=' + width); } //hier ist Zeile 350 O_o |
Woran liegt's? |
Quelltext 1: 2: 3: 4: 5: 6: 7:
| function PopUp(url,title,hoehe,weite) {
var vHoehe = hoehe; var vWeite = weite;
window.open(url,title,'toolbar=no, statusbar=no, height=' + height + ',width=' + width); } //hier ist Zeile 350 O_o |
Ich denke so sollte es gehen.
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Fr 09.03.07 16:56
Und welchen Sinn soll das haben?
Height ist dann undefiniert
Trotzdem danke an Regan. 
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Sa 10.03.07 16:35
Sieht einer den Fehler?
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
jakobwenzel
      
Beiträge: 1889
Erhaltene Danke: 1
XP home, ubuntu
BDS 2006 Prof
|
Verfasst: Sa 10.03.07 16:40
Vielleicht hilfts, die erweiteren Optionen vorher schon zusammenzusetzen und dann als eine Variable zu übergeben.
_________________ I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Sa 10.03.07 17:55
Das ist wie verhext. So klappt es nicht. Im IE gibt es eine Fehlermeldung (Ungültiges Argument). C#-Quelltext 1: 2: 3: 4: 5: 6:
| function PopUp(url,title,height,width) { var param = 'toolbar=no, statusbar=no, height=' + height + ',width=' + width; alert(url); alert(title); var new_window = window.open("http://www.google.de",title,param); } | Aber so klappt es auf einmal: C#-Quelltext 1: 2: 3: 4: 5: 6:
| function PopUp(url,title,height,width) { var param = 'toolbar=no, statusbar=no, height=' + height + ',width=' + width; alert(url); alert(title); var new_window = window.open("http://www.google.de","Google",param); } | Die Ausgaben mit alert zeigen das Richtige an. Ich verstehe das NICHT.
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
GTA-Place
      

Beiträge: 5248
Erhaltene Danke: 2
WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
|
Verfasst: Sa 10.03.07 18:34
Es gibt keine Eigenschaft statusbar, siehe auch:
de.selfhtml.org/java...ekte/window.htm#open
Die Eigenschaft heißt nur status.
_________________ "Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: So 11.03.07 10:35
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
|