點擊我的下載按鈕後,我繼續有「ACCESS DENIED」。 我已經完全控制了指定的文件夾。下載文件:ACCESS DENIED
我在jquery中使用它。
function DownloadFile(ProductNumber, File)
{
var windowSizeArray = ["width=400,height=400",
"width=500,height=600,scrollbars=yes"];
File = "C:/Documents and Settings/My PC/My Documents/" + File;
if (File != "")
{
var windowName = "popUp";
var windowSize = windowSizeArray[$(this).attr("rel")];
var exist = isExists(File);
if (exist)
{
window.open(File, windowName, windowSize);
}
else
{
ShowAlertMessage("The file for Product no. <a href='" + File + "' target='blank'>" + ProductNumber+ "</a> does not exist.");
}
}
else
{
ShowAlertMessage("No PDF file for Product no: " + ProductNumber+ ".");
}
}
jquery不是一種語言,它是一個JavaScript庫,因此這個問題也落在了javascript上。 – Daedalus 2012-07-13 07:08:47