编写一个Dll,
使IE下JavaScript中
可用window.external.myFunction(*, ... ,*)
就像MyIE2中可以用window.external.m2_readIni(...);来读取某ini文件。
使IE下JavaScript中
可用window.external.myFunction(*, ... ,*)
就像MyIE2中可以用window.external.m2_readIni(...);来读取某ini文件。
解决方案 »
- 公司项目奖金发放的原则和标准
- 如何在Windows2000系统下,用Delphi编程实现定时下载Unix/Linux下的文件?
- 初学,用ADO怎么把数据存入SQLSERVER2000!
- 《软件设计师》考试是上午和下午举行,请问是分几科?
- 我想通过网络向另外一台机子的串口com1写数据,应到怎么写?
- 一个小问题,关于查询
- 如何把dbgrid中的数导出到Word中!!
- 高分求教
- 但storedProcName中可选的存储过程中没有sp_tableoption,该怎么办? 在delphi中怎样调用系统存储过程sp_tableoption?
- 如何向dos屏幕送一个字符串,像c中的printf
- 怎样实现快速、频繁的修改报表?
- 这样的报表程序怎么实现!有例子吗
Extending the Dynamic HTML Object Model
It is possible for the hosting application to extend the Dynamic HTML Object Model so that scripts can refer to functionality implemented by the host. Such scripts refer to the host by specifying the external object that is available from the window object. For example, a reference to "window.external.speech" will call the host to resolve the name "speech." All standard script within the document will be executed normally.This extension mechanism is implemented in the host by providing an IDispatch interface for the object model extension that will have IDispatch::GetIDsOfNames and IDispatch::Invoke called on it to resolve any references to the external object. The IDispatch that the host provides is obtained by the WebBrowser Control or MSHTML component by calling the host's IDocHostUIHandler::GetExternal method.For an example of how to extend the Dynamic HTML Object Model, see the Driller Sample Source Page .这是微软网站上的例子
http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/downloads/samples/internet/browser/driller/default.asp
程序员不能只懂一种语言的呀。