Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Second Web Browser not Displaying
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00637335
Message ID:
00637646
Vues:
22
Nick,

Are you getting an error? How are you creating oBrowser1 and 2? You should not call the Refresh() method of the browser control, and in fact you should put a NODEFAULT in the Refresh() method of the browser controls to prevent runtime errors.

I dropped two browsers on a form, and set this as the BeforeNavigate2() method:
LPARAMETERS pdisp, url, flags, targetframename, postdata, headers, cancel

thisform.oBrowser2.Navigate( url, flags )

cancel = ! thisform.MaxButton && will cause the second and subsequent link clicks to open in the other browser only
thisform.MaxButton = .f.
I drop an html file onto oBrowser1 and then click the links in it and the oBrowser2 shows the other pages.

>I have a form that has 2 web browsers (oBrowser1 and oBrowser2). First of all when I run my form, oBrowser2 doesn't showup on the screen. Second, I am running a code from oBrowser1.BeforeNavigate2 that will control what is displayed in oBrowser2. The code is as follows:
>
>
>*oBrowser1.BeforeNavigate2
>    With ThisForm.oBrowser2
>      .Navigate2('file://'+sys(5)+curdir()+this.oBrowser2)
>      .refresh()
>    Endwith
>
>
>
>
>Does anyone know if I can do the above where 2 browser can exist at same time and one browser can issue commands to another browser?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform