使用javascript从HTML页面打开.oft文件 [英] Open a .oft file from html page using javascript

查看:116
本文介绍了使用javascript从HTML页面打开.oft文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Java脚本在html中打开.oft文件,我可以使用ActiveX Object来做到这一点.但是Activex Object不支持Firefox.还有其他方法吗?

I want to open a .oft file in html using java script, i could do this with ActiveX Object. But Activex Object is not suported in firefox. is there any other way to do this?

推荐答案

AFAIK,无法通过Javascript访问文件对象(除了ActiveX控件存在安全访问问题之外)和IE仅支持).

由于安全问题,不允许浏览器访问客户端系统文件.可能的解决方法是将文件保留在Web服务器上并提供指向它的链接.单击链接文件后,即可在默认的关联打开器中打开.
AFAIK, it''s not possible to access file objects via Javascript (apart from ActiveX control which has security access issue and IE only support).

Because of security issues, browsers are not allowed to access client system files. Possible workaround could be to keep the file on webserver and provide a link to it. On clicking the link file can open in the default associated opener.


这篇关于使用javascript从HTML页面打开.oft文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆