Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:46

spaces in url


Poster: n.mcgill __at__ unn.ac.uk
Dated: Thursday January 31 2002 - 15:38:38 GMT

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

Re: spaces in url


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:51:01 BST

You can try

Re: spaces in url


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:51:02 BST

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

Re: spaces in url


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:51:03 BST

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

Re: spaces in url


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:51:04 BST

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

Re: spaces in url


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:51:05 BST

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

Re: spaces in url


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:51:06 BST

Try

Re: spaces in url


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:51:07 BST

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

Re: spaces in url


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:51:08 BST

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

Re: spaces in url


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:51:09 BST

works!
thank you andy
-damon

Space in URL


Poster: tomandthecats
Dated: Friday September 6 2002 - 17:22:25 BST

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