已经注册DOM对象 [英] Already register DOM object

查看:135
本文介绍了已经注册DOM对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面上有两个链接.单击第一个链接时,将打开一个jquery窗口,单击第二个链接时,将打开一个htmlpopup窗口(dhtml窗口).
但是,当我打开第一个链接(即jquery窗口)并打开关闭该窗口后,之后我打开了第二个链接..单击第二个链接后,我得到了以下错误..

Window master已在DOM中注册!确保在构造函数中使用setDestroyOnClose()或destroyOnClose:true


请帮忙..

I have a page on which two links are there.On click of first link one jquery window is opened and on click of second link one htmlpopup window(dhtml window) is opened.
But when I open first link (i.e jquery window) and after opening closing that window and after that i am opening second link.. after clicking on second link i have got the following error..

Window master is already registered in the DOM! Make sure you use setDestroyOnClose() or destroyOnClose: true in the constructor


please help..

推荐答案

由于您尚未发布代码,因此很难说出是怎么回事,但是显然这两种方法都可以同样的事情,他们彼此相遇.您需要修复您的代码才能解决此问题.您可以使用Chrome调试JavaScript,检查对象状态等.这应该可以帮助您确定错误的原因.如果您仍然受阻,如果您不向我们展示代码,我们将无法修复您的代码.

赢"的对象显然是问题所在.您必须在其他地方重新创建它,或者只是在两次调用此方法时已经创建的情况下才创建它.
As you''ve not posted code, it''s hard to say what''s going on, but obviously both methods do the same thing, and they are running in to one another. You need to fix your code to solve this issue. You can use Chrome to debug javascript, examine the state of objects, etc. That should help you work out what your error is. If you''re still stuck, we can''t fix your code if you don''t show it to us.

The ''win'' object is clearly the issue. You must be creating it again somewhere else, or just creating it when it''s already created when this method is called twice.


这篇关于已经注册DOM对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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