P
pmind
Hello all,
I have been asked to add the contents of a CD to a network location.
When installed on a PC, the installation software asks for the letter
of the local CD drive; this works without flaw. The CD basically
contains an HTML index page and a folder of PDF's. The index page uses
a javascript to call the basic location of the PDF folder. My question
is: how can I modify the following javascript to find a network
location instead of a local drive letter?
I've tried a few unsuccessful approaches using my very limited
knowledge of javascript. Any assistance would be greatly appreciated.
Thanks, Paul.
var DRIVE="E";
function GoPDF(PATH){
LETT=DRIVE.substr(0,1);
location="file://" + LETT + ":/PDF/" + PATH;
}
I have been asked to add the contents of a CD to a network location.
When installed on a PC, the installation software asks for the letter
of the local CD drive; this works without flaw. The CD basically
contains an HTML index page and a folder of PDF's. The index page uses
a javascript to call the basic location of the PDF folder. My question
is: how can I modify the following javascript to find a network
location instead of a local drive letter?
I've tried a few unsuccessful approaches using my very limited
knowledge of javascript. Any assistance would be greatly appreciated.
Thanks, Paul.
var DRIVE="E";
function GoPDF(PATH){
LETT=DRIVE.substr(0,1);
location="file://" + LETT + ":/PDF/" + PATH;
}