Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tip: How to prevent New Window in Web Browser control
Message
From
11/12/2008 03:07:50
 
 
To
04/12/2008 14:55:13
Don Hagan
Federal Reserve Bank of Kansas City
Kansas City, Missouri, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01365420
Message ID:
01366582
Views:
12
Hi Don, What my method does that I wanted to point out is that it keeps a "new target" type link from being sent to the big IE, and instead opens the target in the same vfp form, (popups included). This allows me to keep the current web content in my vfp form regardless of what links the user clicks on. Normally, a new target type link automatically opens the big IE to open the page, regardless if my control is registered as browser or not.

My code does open popups, and keeps them in the vfp form. I want this, in case its not a popup but a legitimate web page. I have extra code to prevent popups from poping up over and over like some do and thus crashing the form.

Regards, -Mark

>I believe this will also prevent the new window. I don't know if it will deal with popups in the same manner as your method does.
>
>In NewWindow3 in the first (visible) browser
>
>thisform.xoleweb2.RegiserAsBrowser = .t.
>ppdisp = thisform.xoleweb2.object
>CANCEL = .t.
Previous
Reply
Map
View

Click here to load this message in the networking platform