spaces in url

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
n.mcgill@unn.ac.uk
Beginner
Beginner
Posts: 3
Joined: Sun May 19, 2002 7:23 pm

spaces in url

Post by n.mcgill@unn.ac.uk »

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
Guest

Re: spaces in url

Post by Guest »

You can try
Guest

Re: spaces in url

Post by Guest »

I think you can use a instead of so long as your filename doesn't include characters
Guest

Re: spaces in url

Post by Guest »

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
Guest

Re: spaces in url

Post by Guest »

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
Guest

Re: spaces in url

Post by Guest »

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
Guest

Re: spaces in url

Post by Guest »

Try
Guest

Re: spaces in url

Post by Guest »

I make this: tempStr = "file://C:/Program
Guest

Re: spaces in url

Post by Guest »

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
Guest

Re: spaces in url

Post by Guest »

works!
thank you andy
-damon
tomandthecats
Beginner
Beginner
Posts: 3
Joined: Mon Sep 02, 2002 4:46 pm
Contact:

Space in URL

Post by tomandthecats »

You can always use a %20 which will produce a space and yet be a complete string of HTML
Post Reply