AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi open link in other webbrowser
Thema durchsuchen
Ansicht
Themen-Optionen

open link in other webbrowser

Ein Thema von mr_fahrrad · begonnen am 10. Jan 2007 · letzter Beitrag vom 11. Jan 2007
Antwort Antwort
mr_fahrrad

Registriert seit: 28. Dez 2006
46 Beiträge
 
#1

open link in other webbrowser

  Alt 10. Jan 2007, 19:51
I have two webbrowsers

How I make to click in link in one and load page (from clicked link) in the second webbrowser?
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#2

Re: open link in other webbrowser

  Alt 10. Jan 2007, 19:52
You have to catch events in the first instance and pass them to the second.
Markus Kinzler
  Mit Zitat antworten Zitat
marabu

Registriert seit: 6. Apr 2005
10.109 Beiträge
 
#3

Re: open link in other webbrowser

  Alt 10. Jan 2007, 20:20
Hi,

the code sample attached here shows you how to deal with the event OnNewWindow2() and multiple instances of TWebBrowser. While OnNewWindow2() is fired only when a new browser instance is about to open, OnBeforeNavigate2() is fired for any navigation.

Regards
  Mit Zitat antworten Zitat
mr_fahrrad

Registriert seit: 28. Dez 2006
46 Beiträge
 
#4

Re: open link in other webbrowser

  Alt 11. Jan 2007, 12:28
thanks!

I use beforeNavigate2 and make my action and cancel=true;
  Mit Zitat antworten Zitat
marabu

Registriert seit: 6. Apr 2005
10.109 Beiträge
 
#5

Re: open link in other webbrowser

  Alt 11. Jan 2007, 13:33
Think twice.

If that very link is clicked while Shift is held down, a new browser window is created. Only thereafter the event OnBeforeNavigate2() is fired. You sure can cancel the ongoing navigation now, but what about the blank window glaring at you?

Regards
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:59 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz