Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Fr 09.03.07 16:34 
Im FF klappt's. Im IE gibt es eine Fehlermeldung in Zeile 350 - Zeichen 2.
ausblenden 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
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Fr 09.03.07 16:39 
user profile iconMarco D. hat folgendes geschrieben:
Im FF klappt's. Im IE gibt es eine Fehlermeldung in Zeile 350 - Zeichen 2.
ausblenden 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?

ausblenden 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. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: 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. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: 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
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: 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. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Sa 10.03.07 17:55 
Das ist wie verhext. :gruebel: :nixweiss: :lupe:
So klappt es nicht. Im IE gibt es eine Fehlermeldung (Ungültiges Argument).
ausblenden 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:
ausblenden 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
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: 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. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 11.03.07 10:35 
So klappt es nun auf einmal: :shock:
ausblenden C#-Quelltext
1:
2:
3:
4:
function PopUp(url,title,height,width) {
  var param = 'left=0,top=0,toolbar=no,height=' + height + ',width=' + width;
  window.open(url,"Bildvorschau",param);
}

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot