易截截图软件、单文件、免安装、纯绿色、仅160KB

怎么使用JavaScript调用mfc中的方法

我的程序里有个IWebBrowser2对象,怎么才能让里面的网页里的js可以调用c++写的方法呢
IWebBrowser2这个是动态创建的。

不是js调用C++的方法,是C++截获到Js的事件,然后自己执行某个方法

引用
不是js调用C++的方法,是C++截获到Js的事件,然后自己执行某个方法


有具体代码不,

自己google吧

关键字 activex与javscript交互 网上大把的代码

我都搜索半天了,你顺便给个地址吧

refer to CDHtmlEventSink

Now, we will create an event that enables the ActiveX control to notify the web page that it is completed transferring the text from the input parameter to the output parameter. Code in the web page will react to this event and respond by displaying the text in the output parameter to verify that this transfer has occurred by the ActiveX control. In Class View, right click on CMyActiveXCtrl, select Add, Add Event. In the Add Event Wizard, as shown in Figure 11, enter �ParameterLoaded� for Event name and change Internal name to �FireParameterLoaded�. Click Finish for the wizard to create the default code to support this event.


References:
http://www.cnblogs.com/kevin-wang/archive/2009/12/15/1624812.html




相关问答:

asp中用javascript动态改变Image的src的路径问题

<form id="form1" runat="server">
  <div>
  <script type="text/javascript">
  function oo(a){
  document.getEleme ......

后台调用JavaScript问题 - .NET技术 / ASP.NET

我在后台调用JavaScript的时候,他是在后台把事件的代码执行一次后在执行JavaScript方法
 有什么办法 在执行JavaScript方法的时候停住,在执行后面的代码
不太明白啊,说清楚点吧

就是执行后台代码的时候 ......

急求助,用javascript解析字符串

格式:编号(2字节)+ 总长度(3字节)+ 数据内容(总长度-5) + ........ +编号(2字节)+ 总长度(3字节)+ 数据内容(总长度-5)
读卡返回数据编号的规则:
00 发卡标志 0000700
01 医疗证号 010101 ......

趣味javascript... - Web 开发 / JavaScript

我也来一个趣味javascript:
打开以下html文件,依次按下G,L,C三个键,就会有奇迹出现!!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号