Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
337 views
in Technique[技术] by (71.8m points)

javascript - 如何检查该窗口中的javascript是否已打开某些IE窗口(How to check if some IE window is already opened by javascript within that window)

our web app doesn't support IE but customer wants to use call center functionality which is only supported in IE due to activeX control of call center.

(我们的Web应用程序不支持IE浏览器 ,但用户想要使用这是只有在IE由于呼叫中心的ActiveX控件支持呼叫中心功能。)


As a work around, when user clicks on call button in chrome, web app opens the callCenter.html page in IE by using URL Alert protocol , and that callCenter.html page starts the initialization of activeX control for further operations.

(解决方法是,当用户单击Chrome中的“呼叫”按钮时,Web应用程序将使用URL Alert协议在IE中打开IE中的callCenter.html页面,并且该callCenter.html页面将启动activeX控件的初始化以进行进一步的操作。)

So far its OK.

(到目前为止,还可以。)



Problem is, if callCenter.html window is already opened in IE, and user clicks again on call button in chrome, it opens another window of callCenter.html in IE, which results in activeX control initialization again and here it gets malfunctioning, since that activeX control is already loaded and running in previous IE window.

(问题是,如果已经在IE中打开了callCenter.html窗口,并且用户再次在chrome中单击了呼叫按钮,则会在IE中打开另一个callCenter.html窗口,这将导致ActiveX控件再次初始化,并且在这里它会出现故障,因为activeX控件已在以前的IE窗口中加载并运行。)



So please suggest, if there is some way, by which we can detect if callCenter.html window is already opened in IE, and if its already opened, it should update the calling parameters for call center.

(因此,请提出建议,如果有某种方式,我们可以检测IE中是否已经打开callCenter.html窗口,如果已经打开,则应更新呼叫中心的调用参数。)


Many thanks for your kind suggestions

(非常感谢您的建议)

  ask by M.K translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.8k users

...