Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tip: How to prevent New Window in Web Browser control
Message
De
11/12/2008 03:07:50
 
 
À
04/12/2008 14:55:13
Don Hagan
Federal Reserve Bank of Kansas City
Kansas City, Missouri, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01365420
Message ID:
01366582
Vues:
11
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform