请教asp打开pdf文件的问题,急等
我用这个语句打开pdf文件<input name="file" type="button" class="button" value="查看" onClick="javascript:openfile('<%=rs_file("wjcfdz")%>')" />
<script language="javascript">
function openfile(filepath){
var winWidth=850;
var winHeight=600;
window.open(filepath,"winfile","height=" + winHeight + ",width=" + winWidth + ",top="
+ (screen.height-700)/2 + ",left="
+ (screen.width-820)/2 + ",status=yes,toolbar=no,menubar=no,location=no");
}
</script>
在我本机调试时可以预览,但是我把放到服务器上是,就无法浏览了,这是为什么
文件地址:../data/文件/检定规程/JJG1-1999钢直尺检定规程.pdf