Autor Beitrag
Flash106
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: So 01.05.05 11:25 
Hallo,

ich möchte gerne das wenn ich im TWebBrowser auf einen Linkklicke wo sich ein neues Fenster öffnet (per Javasript), das sich dieses Fenster dann in einem Form anzeigt anstatt im IE. EINMAL klappt es aber kein zweites mal.. warum?!?!? Hab das so gelöst:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.wbNewWindow2(Sender: TObject;
  var ppDisp: IDispatch; var Cancel: WordBool);
begin
    TempForm.Show; //Anderes Form anzeigen
    ppDisp := TempForm.wbTmp.DefaultDispatch; //Website in WB in anderem Form anzeigen
end;


Wenn ich das Fenster zu mache und ein zweites mal auf den Link klicke öffnet sich das Form aber der WB bleibt leer.. :(
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Mo 02.05.05 05:58 
Hallo!

Ich kann dein Problem nicht nachvollziehen!
Bei mir funktioniert's (getestet mit DP Chat, siehe Anhang)

Waere natuerlich noch nuetzlich zu wissen, um welche Webseite es sich handelt...
Einloggen, um Attachments anzusehen!