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?
Help with mapped drives ?
Re: Help with mapped drives ?
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:
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):
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
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: Select all
aI("text=Test;url=./extras/listbased_menu/index.html");
To get back to where you were you could add this to your listbased menu (index.html):
Code: Select all
<li><a href="../../index.htm">Back to Menu Page</a></li>
Re: Help with mapped drives ?
I think you're on the right track. This is what works for me.
Or to open a directory of files in a file explorer window...
Code: Select all
aI("text=Test1;url=file://SERVERNAME/ShareName/filename.pdf")
Code: Select all
aI("text=Test2;url=file://SERVERNAME/ShareName/Sub-DirectoryName/")