简体   繁体   English

如何在extjs中获得父窗口或在extjs中获得等效的window.opener?

[英]How to get parent window in extjs or window.opener equivalent in extjs?

I am launching a window using HtmlPage.Window.Navigate(Uri, "_blank"); 我正在使用HtmlPage.Window.Navigate(Uri, "_blank");启动一个窗口HtmlPage.Window.Navigate(Uri, "_blank"); from silver light. 从银色的光。 I want to notify silverlight app from extjs unload event. 我想从extjs卸载事件通知silverlight应用程序。

I am trying with window.opener from my extjs code in app.js 我正在尝试通过app.js中的 extjs代码使用window.opener

Ext.EventManager.on(window, 'beforeunload', function () {
            //window.opener is undefined here
            }

Is there any extjs equivalent for window.opener? 是否有等效于window.opener的extjs? Or How to get the parent window from extjs? 或如何从extjs获取父窗口? I am trying with the sample http://www.codeproject.com/Articles/293515/Calling-Silverlight-Method-from-Javascript-and-Jav for calling silverlight method from javascript? 我正在尝试使用示例http://www.codeproject.com/Articles/293515/Calling-Silverlight-Method-from-Javascript-and-Jav从javascript调用silverlight方法?

I don't think this is an ExtJS issue but rather browser support. 我认为这不是ExtJS问题,而是浏览器支持。

Take a look at this question: window.opener alternatives 看一下这个问题: window.opener的替代品

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM