General information
Category:
Internet applications
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only