FireFox中的弹出重用 [英] Popup reuse in FireFox

查看:85
本文介绍了FireFox中的弹出重用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的应用程序中重用弹出窗口。重复使用的弹出窗口也会打开另一个弹出窗口。从这个最后的弹出窗口我然后尝试引用位​​于窗口中的

函数,该函数最初打开了重用的

弹出窗口。这在IE中工作正常但不在FireFox中。通过FireFox中的Javascript调试器查看

代码,它告诉我

重用弹出窗口的开启器即使仍处于打开状态也会关闭。这是

a与FireFox的错误还是只是不好的做法?


谢谢,


Aaron

解决方案

Aaron写道:

重复使用弹出窗口的开启者即使仍然打开也会关闭。这是一个FireFox的错误还是只是不好的做法?




我无法重现类似的东西(Firefox 1.0.2 / Win 32)。


这是一个简单的测试案例:
http://www.innoline-systemtechnik.de/dhgm/cascade.html

如果在该测试用例中打开多个弹出窗口并且不要关闭

沿途的任何窗口,你不总是得到一个名为RootWindow的

窗口的列表。作为最后一个条目?


ciao,dhgm


Dietmar,


谢谢为了您的快速回复。您发布的示例并不完全是什么

我遇到了问题。在你发布的例子中,如果你在弹出窗口1和弹出窗口1打开弹出窗口2打开弹出窗口2,然后在弹出窗口2打开弹出窗口

3在新窗口中然后检查来自Popup 3的Popup 2的揭幕战

你应该得到我遇到的同样的问题。


Aaron


道歉我只是设置了一个类似于你所做过的测试,但是我在原始帖子中描述的场景是

。它看起来好像

确实有效。仍然不确定为什么它在我的应用程序中不起作用。我会

必须继续挖掘。


Aaron


I am trying to reuse a popup in my application. The reused popup also
opens another popup. From this final popup I then try and reference a
function located in the window that origionally opened the reused
popup. This works fine in IE but doesn''t in FireFox. Looking at the
code through the Javascript debugger in FireFox it tells me that the
reused popup''s opener is closed even though it is still open. Is this
a bug with FireFox or just bad practice?

Thanks,

Aaron

解决方案

Aaron wrote:

reused popup''s opener is closed even though it is still open. Is this
a bug with FireFox or just bad practice?



I can''t reproduce something like that (Firefox 1.0.2/Win 32).

Here''s a simple test case:
http://www.innoline-systemtechnik.de/dhgm/cascade.html

If you open multiple popups in that test case and don''t close
any window along the way, don''t you always get a list with the
window named "RootWindow" as the last entry?

ciao, dhgm


Dietmar,

Thanks for your quick reply. The example you posted is not quite what
I am having the problem with. In the example you posted if you made
Popup 2 open in the same window as Popup 1, then on Popup 2 open Popup
3 in a new window and then checked the opener of Popup 2 from Popup 3
you should get the same problem that I am having.

Aaron


My apologies I just set up a test similar to what you had done but with
the scenario I described in my origional posting. It looks like it
does work. Still not sure why it doesn''t work in my application. I''ll
have to keep digging.

Aaron


这篇关于FireFox中的弹出重用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆