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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:07

Help with mapped drives ?


Poster: Inphluence
Dated: Wednesday December 9 2009 - 21:28:05 GMT

I can map to files on my network drive by telling it what letter to go to like this

aI("text=DVDs;url=File:///G:/Movies/Dvds;target=new");

...but !

I can't view it from another computer without pre-mapping the same drive letter on that machine.

Isn't there a way I can use the server name somehow? I've tried different things so far but none have worked.

i.e.

aI("text=DVDs;url=File:///SERVERNAME/Movies/Dvds;target=new");

Help?

Re: Help with mapped drives ?


Poster: Andy
Dated: Thursday December 10 2009 - 12:33:24 GMT

The only way you'll be able to do this is if you use ../ and ./ to go to current and backwards folders - this eliminates the need for the servername or drive letter

To see it work, Take a copy of the menu download and in the menu_data.js file add this to the main menu:

Code:
aI("text=Test;url=./extras/listbased_menu/index.html");


This will link to the listbased sample in the extras folder.

To get back to where you were you could add this to your listbased menu (index.html):

Code:
<li><a href="../../index.htm">Back to Menu Page</a></li>


This is perhaps the only time I would recommend using the ./ and ../ methods - the only caveat is that you must keep track of where you are otherwise you may end up linking to a non existent file

Re: Help with mapped drives ?


Poster: beefeater
Dated: Saturday December 12 2009 - 4:35:21 GMT

I think you're on the right track. This is what works for me.

Code:
aI("text=Test1;url=file://SERVERNAME/ShareName/filename.pdf")


Or to open a directory of files in a file explorer window...

Code:
aI("text=Test2;url=file://SERVERNAME/ShareName/Sub-DirectoryName/")