Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Second Web Browser not Displaying
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00637335
Message ID:
00638540
Views:
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?



I figured it out, sorry. I had to use thisform instead of this.htmlfile2. THanks for your help anyway

Nick Patel
Previous
Reply
Map
View

Click here to load this message in the networking platform