动态添加OCX控件到网页
我目前有一个基于 Web 的应用程序,它托管 OCX 控件。如果可能的话,我希望能够以编程方式添加此控件,从而允许我插入新的 OCX 控件,而无需修改 HTML 中的 OBJECt 标记。
我还需要能够保持将 OCX 控件下载到客户端(如果未找到)的能力。
这有可能吗?
I currently have an web based application that hosts an OCX control. I want to be able to add this control programatically if possible allowing me to plug in new OCX controls without having to ammend the OBJECt tag in the HTML.
I also need to be able to maintain the ability to download the OCX control to the Client if it is not found.
Is this possible at all?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过直接操作 DOM 在运行时为控件创建
You can create the
<object>
tag for the control at run-time by directly manipulating the DOM. This will also let you download the .ocx to the user if he doesn't have it, like any normal<object>
tag would do.