Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hyperlinks in Memo fields
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01666717
Message ID:
01666722
Views:
67
>I have investigating allowing the user to place hyperlinks in memo fields. Either linking to web pages or local files. The problem I have encountered is that if the path to local files contain spaces, the hyperlink does not work. My first thought was to encode the path with %20 for the spaces. But that seem not to work. Does any one have any suggestions how to format the links correctly.
>
>Thanks in advance.

when you say embed hyperlinks what exactly do you mean? You mean put `a` html tag into the text?

Local file links should work with spaces encoded as `%20` in the same way as Web HTTP links - I do this all the time in Help Builder. If you use full file paths that include a drive you might have to use syntax like this:

file:///c:/somepath/subpath/my%20file.txt

The slash direction of the path itself shouldn't matter though. Note that file links may hit security issues in certain browsers. I think FireFox may not load them if loaded from a Web page (you a `mark of the Web` header to get around this) while Edge/Chrome/IE load it. Also you can't load file links in AJAX requests that dynamically load content through code which is not allowed.


+++ 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