Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run procedure from HTML Hyperlink
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01535217
Message ID:
01535274
Views:
78
>Now that I really need it I seem to have lost my example code to call a procedure from a Hyperlink in HTML in an ActiveX browser control. Can anyone point me to some example code? I tried with Google but no luck.

You capture the OnBeforeNavigate() event in the browser and then examine the URL. Triggered on hyperlinks and form submits.

One thing to remember with this is that the URL needs to be in a valid format and include a protocol prefix (http://, file:/// etc.). This prefix can be fictitious (like vfp://) which is a good way to know whether you need to trigger the URL for internal navigation or let the browser do it.

I covered this a long time ago in an article:
http://west-wind.com/presentations/shellapi/shellapi.asp

towards the bottom.

Hope this helps,

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform