Please help! I've been trying all the ways I can think of to figure out why this code is not working right. If any one can help me, I would really really apprecidate it!!!
function getfile()
{
var strLoc = document.frmMIO.Loc.options[frmMIO.Loc.selectedIndex].value;
var strWeek = document.frmMIO.Week.options[frmMIO.Week.selectedIndex].value;
var strFilePath="//I don't know why it's showing 2 ";" here, but I have only 1 in my code.
var strFile = "plu";
var strFileSuf = ".pdf";
var strLocRef = strFilePath + strWeek + "/" + strFile + strLoc + strFileSuf;
var strEDir="E:\\InetPub\\ + strWeek +"\\" + strFile + strLoc + strFileSuf ;
//E is my physical drive on the web server.
var FSO = new ActiveXObject("Scripting.FileSystemObject"
;
if (FSO.FileExists(strEDir)== true)
{
window.open (strLocRef,"_self"
;
}
else
{
alert ("Sorry, the file you're looking for is not available."
;
}
}
Thanks!
function getfile()
{
var strLoc = document.frmMIO.Loc.options[frmMIO.Loc.selectedIndex].value;
var strWeek = document.frmMIO.Week.options[frmMIO.Week.selectedIndex].value;
var strFilePath="//I don't know why it's showing 2 ";" here, but I have only 1 in my code.
var strFile = "plu";
var strFileSuf = ".pdf";
var strLocRef = strFilePath + strWeek + "/" + strFile + strLoc + strFileSuf;
var strEDir="E:\\InetPub\\ + strWeek +"\\" + strFile + strLoc + strFileSuf ;
//E is my physical drive on the web server.
var FSO = new ActiveXObject("Scripting.FileSystemObject"
if (FSO.FileExists(strEDir)== true)
{
window.open (strLocRef,"_self"
}
else
{
alert ("Sorry, the file you're looking for is not available."
}
}
Thanks!