Simple url?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ajosborne
Beginner
Beginner
Posts: 5
Joined: Wed Feb 01, 2006 12:19 pm

Simple url?

Post by ajosborne »

I want some simple urls in my intranet website (for simple users?).

I want a link to a network share and found that I had to double up on the number of backslashes (url=\\\\servername\\sharename\\foldername;) why? Guess it might be a unix vs. windows thing.

Now my problem is I want url=My Documents; but the menu code always changes the link so that I cannot actually just get "My Documents" to appear in the browser URL.

How do I get 'My Documents' recognised as a file link???

Presumably there is some parsing of the url=xxx variable. what are these parsing rules and are they documented?

Cheers. James.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

'My Documents' is not a URL. It would be something like...

Code: Select all

"C:\Documents and Settings\username.login_domain\My Documents"
The main problem here is that directory is on your local drive. Unless you're building a system that you plan on running just locally (i.e., not being published on a server), nobody will be able to get to that location. Or are you going to open up your system to the whole world... :?: :roll:

I realize you said 'intranet', but that still implies opening up your system to outside users. Not a good idea at all.
John
ajosborne
Beginner
Beginner
Posts: 5
Joined: Wed Feb 01, 2006 12:19 pm

Post by ajosborne »

Hi John,

I am running the website on an IIS web server. Not locally.

All users are internal staff who have a 'My Documents' which is redirected to a network server so that their 'My Documents' is backed up. Therefore every user has a My Documents which is specific to them. Yes it is roughly equivalent to the long link you mention, which could be a local directory or a network directory.

In Internet Explorer the URL 'My Documents' works fine so as far as IE is concerned this is a valid URL which IE knows what to do with. Equally valid for IE would be an URL such as 'H:\' which might be a mapped network drive or a local disk.

The menu can cope with a sharename such as \\\\server\\share\\folder. I've also found the menu can cope with a link to a shared folder such as url=file:///\\server\\share\\folder. but it doesn't seem able to cope with something like 'H:\' or 'My Documents' no matter how I write the syntax.

Is there any way I can make these simple IE URLs recognised?

James.
Post Reply