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
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?