***JavaScript:在用window.open和window.showModelessDialog方法弹出的页面中,ActiveX控件的所有事件竟然不触发,window.showModalDial

WhiteWaterBlueSky 2003-08-19 08:55:39
如题!
重谢!
...全文
108 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
WhiteWaterBlueSky 2003-08-19
  • 打赏
  • 举报
回复
to chinesun(石上):
兄弟,我是在网页中嵌入Tidestone公司的formula one book 6.1控件的啊。
通过JavaScript响应它的事件,同样的代码,在用window.open和window.showModelessDialog方法弹出的页面中,事件竟然不触发,而用window.showModalDialog方法却是可以的。
chinesun 2003-08-19
  • 打赏
  • 举报
回复
其实要看你的那两个window的方法是怎么写的。要不你把全部代码写出来看看。
lions911 2003-08-19
  • 打赏
  • 举报
回复
接分
chinesun 2003-08-19
  • 打赏
  • 举报
回复
IActiveScriptSiteWindow(你的带ActiveX控件的窗口):This interface is implemented by hosts that support a user interface on the same object as IActiveScriptSite. Hosts that do not support a user interface, such as servers, would not implement the IActiveScriptSiteWindow interface. The scripting engine accesses this interface by calling QueryInterface from IActiveScriptSite.
其方法主要有:
1、GetWindow:(Retrieves the window handle that can act as the owner of a pop-up window that the scripting engine must display. )
2、EnableModeless:(Causes the host to enable or disable its main window as well as any modeless dialog boxes.)
chinesun 2003-08-19
  • 打赏
  • 举报
回复
EnableModeless:
Causes the host to enable or disable its main window as well as any modeless dialog boxes.
xiaobaowu 2003-08-19
  • 打赏
  • 举报
回复
关注
chinesun 2003-08-19
  • 打赏
  • 举报
回复
EnableModeless:
HRESULT IActiveScriptSite::EnableModeless(
BOOL fEnable // enable flag
);

Causes the host to enable or disable its main window as well as any modeless dialog boxes.

Returns S_OK if successful, or E_FAIL if an error occurred.
fEnable
[in] Flag that, if TRUE, enables the main window and modeless dialogs or, if FALSE, disables them.
This method is identical to the IOleInPlaceFrame::EnableModeless method.

Calls to this method can be nested.
WhiteWaterBlueSky 2003-08-19
  • 打赏
  • 举报
回复
0
WhiteWaterBlueSky 2003-08-19
  • 打赏
  • 举报
回复
-
正在处理您的请求...

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧