Autor Beitrag
Murmel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79

xp
d6,d7
BeitragVerfasst: Mo 13.10.03 11:35 
wie kann ich im webbrowser popups verhindern?`

gruß murmel
ao
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 145

Win XP Prof.
D7 Ent.
BeitragVerfasst: Mo 13.10.03 11:37 
einfach javascript abstellen ... :lol:
Murmel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79

xp
d6,d7
BeitragVerfasst: Mo 13.10.03 11:47 
Titel: ha lustige antwort ;O)
muß es aber nur im webbrowser1 deaktivieren, ansonsten soll es überall funktionuckeln ;O)


gruß murmel
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 13.10.03 15:19 

_________________
In the beginning was the word.
And the word was content-type: text/plain.
ao
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 145

Win XP Prof.
D7 Ent.
BeitragVerfasst: Mo 13.10.03 15:21 
@matze
glaube nicht, dass das das richtige ist. es geht um popup-fenster und nicht um das kontext menü ... oder murmel?

andreas
Murmel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79

xp
d6,d7
BeitragVerfasst: Mo 13.10.03 16:53 
Titel: PopUp und nicht kontextmenü...
gaaaanz genau ;O) hier geht es um lästige popup fenster die nicht geöffnet werden sollen, das kontextmenü läßt sich leicht deaktivieren, wie aber kann man wohl die PopUps verhindern? das ganze soll sich nur auf die im webbrowser geöffneten urls beziehen...


grüße aus dem sonnigen hameln von murmel ;O)
Murmel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79

xp
d6,d7
BeitragVerfasst: Di 14.10.03 13:03 
Titel: i hob die lösung ;O)
einfach im webbrowser bei onnewwindows close := true setzen dann gibts keine blöden popups mehr ;O)

gruß murmel
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 14.10.03 14:06 
achso ich dachte du meinst popupmenüs !!! sorry.

es gibt bei der webbrowser kompo das erignis newwindow oder so. das müsste auch bin nem poup ausgelößt werden. du musst halt nur unterscheiden ob das ein popup fenster ist oder ein link mit dem target=_blank

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Cyberaxx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89



BeitragVerfasst: Mi 02.06.04 21:29 
Edit// Sofern es noch jemanden hier interessieren mag...

also wenn man die Prozedure:

ausblenden Quelltext
1:
2:
procedure TForm1.NameDesBrowsersWebBrowser1NewWindow2(Sender: TObject;
  var ppDisp: IDispatch; var Cancel: WordBool);


so sieht, ist dort als Variable Cancle.
Wenn man nun Cancel auf false setzt wird das neue Fenster automatisch nicht geöffnet.

ausblenden Quelltext
1:
2:
3:
4:
5:
procedure TForm1.Galaxywars1WebBrowser1NewWindow2(Sender: TObject;
  var ppDisp: IDispatch; var Cancel: WordBool);
begin
cancel := true;
end;


Natürlich wird so jedes Fenster unterbrochen auch die die man haben will wie rechtsklick "in neuem Fenster öffnen". Will man dies aber nun kontollieren kann man jetzt eine auswahl treffen wie Beispielsweise es wird eine *.txt Datei geöffnet in der nur URL's stehen die zugelassen werden oder wie bei einem PopUp Killer die die er eben nicht zulassen soll dann wird eben nur bei einem zutreffenden das Cancel gesetzt.
Hatte es grad selbst ausprobiert und da viel mir auf das alle Fenster geschlossen werden bzw erst garnicht geöffnet.

_________________
Das Aufwachen aus einem boesen Traum muss einen nicht erleichtern. Es kann einen auch erst richtig gewahr werden lassen, was man Furchtbares getraeumt hat, vielleicht sogar welcher furchtbaren Wahrheit man im Traum begegnet ist!