Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browser ActiveX Control and NewWindow2 events
Message
From
18/05/2004 03:15:40
 
 
To
16/05/2004 21:51:19
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00904468
Message ID:
00904806
Views:
18
After all no problem with NewWindow2 event. It was my fault,I just improperly cancelled in my BeforeNavigate2 handler HREF pointing to javascript.
Also anything similar to the code below does work ( could wrapped as class).
* NewWindow2 Event 
LPARAMETERS ppdisp, cancel
 DO FORM ie_newwindow NAME ie_newwindowref linked
 ie_newwindowref.oie.RegisterAsBrowser = .T.
 ppDisp = ie_newwindowref.oie.Object
 ie_newwindowref.show() 
>NewWindow2 does not seem to be triggered at all. Any thoughts what prevents it from happening? I am trying to drive certain Web site in a form which has some popups ( calendars and etc... ) . Assuming if I succeded with enabling NewWindow2 would it be supposed to work in Browser control ?
>
>Microsoft Knowledge Base Article - 184876 with VB example is the following
>
>
>Private Sub WebBrowser1_NewWindow2(ppDisp As Object,
>                                   Cancel As Boolean)
>   Dim frmWB As Form1
>   Set frmWB = New Form1
>
>   frmWB.WebBrowser1.RegisterAsBrowser = TRUE
>
>   Set ppDisp = frmWB.WebBrowser1.Object
>   frmWB.Visible = True
>End Sub
>
>
>TIA
>Michael
Previous
Reply
Map
View

Click here to load this message in the networking platform