在Web浏览器中读取和写入ActiveX控件 [英] read and write to ActiveX control in Web Browser

查看:143
本文介绍了在Web浏览器中读取和写入ActiveX控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要读写位于访问大型机的浏览器中的ActiveX控件.它是一个简单的命令行界面(严格来说是文本),我相信它可能基于citrix界面.我希望能够发送命令并通过代码读取结果.谁能给我一些如何开始的指导?

Paul

I need to read and write to an ActiveX control located in a broswer that accesses a mainframe. It is a simple command line interface (strictly text), and I believe it might be based on a citrix interface. I would like to be able to send a command and read via code the result. Can anyone give me some guidance on how to start this?

Paul

推荐答案

ActiveX控件是否已经存在,如果可以,那么可以使用API​​的描述吗?如果没有,您可以将其导入到win或控制台应用程序中,以至少获得智能.

否则,对象标签就是DOM的任何其他部分.您可以像其他任何元素一样通过其ID访问它.如果控件已成功加载(已安装且没有浏览器安全问题),则可以像在任何win或控制台应用程序中一样使用它的方法和属性.我遇到了在加载页面后javascript会触发但控件尚未启动的问题.可以通过计时器设置回叫来轻松缓解这种情况.
Does the ActiveX control already exist, if so is a description of the API available for it? If not you can import it into a win or console app to at least get intellisence.

Otherwise the object tag is just any other part of the DOM. You can get access to it via it''s id like any other element. If the control is successfully loaded (both installed and having no browser security issues) then you can use it''s methods and properties as you would in any win or console app. I have encountered issues where javascript would fire after loading the page but the control had not yet initiated. This is easily mitigated by setting a call back via timer.


这篇关于在Web浏览器中读取和写入ActiveX控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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