阻止此页面创建其他对话框
Firefox4有一个新功能→【阻止此页面创建额外的对话框】
但是当我希望多次打开警报对话框时,这对我来说也是一个麻烦。
现在,出现了一个新问题...如下↓
1) I call the alert dialog more than once , and check the
【Prevent this page from creating additional dialogs】
2) I click a download button , My web application is down....
(我的按钮事件在下面...并且因为它还没有进入操作,所以我只是编写客户端源代码...)
我的按钮活动
getDownloadFile:function(){
$('xform').submit();
}
我的页面代码
<div style="display:none;">
<form id="xform" action="down.do" method="post" target="xfra">
</form>
</div>
<iframe id="xfra" name="xfra" src="/?scid=dummy.htm" style="width:0px;height:0px;visibility:hidden;"></iframe>
希望有人能帮助我...谢谢...
Firefox4 has a new feature → 【Prevent this page from creating additional dialogs】
But it was also a trouble with me when I hope an alert dialog opened more than once.
Now, A new problem has appeared ...like below ↓
1) I call the alert dialog more than once , and check the
【Prevent this page from creating additional dialogs】
2) I click a download button , My web application is down....
(my button' event is below.... and because it hasn't into the action , so I'm just write the client source....)
My Button Event
getDownloadFile:function(){
$('xform').submit();
}
My Page Code
<div style="display:none;">
<form id="xform" action="down.do" method="post" target="xfra">
</form>
</div>
<iframe id="xfra" name="xfra" src="/?scid=dummy.htm" style="width:0px;height:0px;visibility:hidden;"></iframe>
Hope anybody can help me ...thanks...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜测代码中的$
意味着您正在使用 jQuery(如果是这种情况,您应该在标签中提及它)。如果您不使用 jQuery,那么我对其他框架的选择器了解不多。但是,如果是jQuery,你的选择器就不正确,应该是:
not
由于您使用的是 PrototypeJS,因此上述内容是不正确的。
I am guessing the$
on your code means you are using jQuery (you should mention it in the tags if this is the case).If you are not using jQuery, then I don't know much of the other frameworks' selectors. However, if it is jQuery, your selector is not correct, it should be:
not
Since you are using PrototypeJS, the above is incorrect.
这是一个简单的修复:
Here's a simple fix: