Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HTML Dom - web browser control
Message
De
26/09/2005 16:29:58
 
 
À
26/09/2005 16:14:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01053216
Message ID:
01053220
Vues:
18
>Greetings,
>
>I'm working on an HTML integration utility. The goal is to load an HTML page into the web browser object in VFP and then trap the link the user clicks on so I can save the link source and do some extra processing before sending the user to the next page.
>
>I'm got the page loaded fine and I can grab all the tags by using the getelementsbytagname method. I can loop through the tag elements using the following code:
>
>
>loNodes = o.Document.getElementsByTagName("A")
>
>FOR EACH loNode IN loNodes
>
>  *** Need code here to assign onclick event?
>
>ENDFOR
>
>
>
>Does anyone know the code that I need to write inside this loop to setup the onclick so I can trap it in VFP?
>
>Thanks in advance for the help!!!

If I understand you right, you can place your VFP code in the web browser object's BeforeNavigate event. This event is called whenever the user clicks a link or submits a page.

see
http://www.glrsoftware.com/download/download.asp?file=FoxHTML.zip for examples of this being used.
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform