Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make the new web page in my defined window?
Message
From
08/09/2002 20:59:59
Lu Ping
Zhuhai Tec Co.
Zhuhai, China
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00696513
Message ID:
00698108
Views:
13
David:
At first ,thank u very much.After looking into your way to prevent new ie window ,I have
got a way to handle a new web page in my defined window:
in NewWindow2 events ,
add the example code as below:

loIE = NewObject('IE' ,'class')
ppdisp = loIE.oleWeb

IE class is my defined form with web browser control
But my question come another .i don't know the hyperlinker and the caption,so could u
help me ?

>From my testing setting cancel = .t. in the NewWindow2 event does not work as described in the documentation. Setting cancel = .t. inside the BeforeNavigate2() event does work, but this prevents all hyperlinks from working.
>
>This does seem to work for me though
>
>ppdisp = this
>
>it will prevent the launch of a new window. Though it also doesn't cause the navigation to occur in the IE instance itself.
>
>>I build a form that consist of web browser control , and i want new page show in my defined window
>>when the user rightclick the hyperlinker and select new in the window.
>>
>>I have modified the event "newwindow2" of web browser control .
>>
>>LPARAMETERS ppdisp, cancel
>>CANCEL = .T.
>>
>>but it do not work ,and how can I know the url when the user show the page in the new window?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform