Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML Dom - web browser control
Message
From
26/09/2005 16:29:58
 
 
To
26/09/2005 16:14:01
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01053216
Message ID:
01053220
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform