spaces in url
-
- Beginner
- Posts: 3
- Joined: Sun May 19, 2002 7:23 pm
spaces in url
Can the menu handle spaces in the URL if it's pointing at a file? Example:
If I made the URL of a menu item to be "C:/Program Files/Access97/Install.log". I have tried replacing the space with and putting file:// in front of the URL. I know that the menu handles files (as it works in other instances), but how do I handle the spaces?
-Damon
If I made the URL of a menu item to be "C:/Program Files/Access97/Install.log". I have tried replacing the space with and putting file:// in front of the URL. I know that the menu handles files (as it works in other instances), but how do I handle the spaces?
-Damon
Re: spaces in url
I think you can use a instead of so long as your filename doesn't include characters
Re: spaces in url
If I make a link on my page like this: <A HREF="file://C:/Program Files/Access97/Install.log">Test</A> it will open up this file when I click on it. If I put "file://C:/Program Files/Access97/Install.log" in the menu array it will not work when I click on it. Its the space between Program and Files that causes the problem. I have tried , , and server.URLEncode, but I cant seem to tell the menu how to handle that space. Any ideas?
-Damon
-Damon
Re: spaces in url
Instead of explicitly specifying the string literal , try assigning it to a 'String' variable and give the variable name in the Menu Array (after replacing spaces with )
Amit
Amit
Re: spaces in url
Assign it to a 'String' variable? Thats a good idea. Hmmm...the menu still doesn't like it. The menu hates spaces in its URLs. For HTTP links I can just put a in it. For file links I am stuck. I'll just tell my users to not point to files for now (unless someone has found a solution).
-Damon
-Damon
Re: spaces in url
I think you need 3 slashes in there.
This does work "file:///C:/Program Files/Access97/1.txt"
I've just tried it.
Cheers
Andy
This does work "file:///C:/Program Files/Access97/1.txt"
I've just tried it.
Cheers
Andy
-
- Beginner
- Posts: 3
- Joined: Mon Sep 02, 2002 4:46 pm
- Contact:
Space in URL
You can always use a %20 which will produce a space and yet be a complete string of HTML