用于Web基础ASP.NET应用程序的firefox弹出窗口中的问题 [英] Problem in firefox popup windows for web base ASP.NET application

查看:59
本文介绍了用于Web基础ASP.NET应用程序的firefox弹出窗口中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我有一个在asp.net和vb.net中开发的web基础应用程序。在我的应用程序中,我使用PopUp窗口来显示水晶报告。我在任何浏览器如firefox面临很多自动弹出窗口阻塞的问题。浏览器自动阻止弹出窗口一次又一次。每次我必须重新安装firefox以在弹出窗口中显示水晶报告。





请给出一些停止自动弹出窗口阻止的解决方案。现在,当我使用我的应用程序时显示任何阻止消息



我尝试过:



i我正在使用一些方法解决这个问题,例如:



  1 。将 字符串复制到剪贴板:dom.successive_dialog_time_limit 
2 。在FireFox地址栏中输入:about:config并按Enter键。
3 。接受警告对话框。
4 。在首选项区域中单击鼠标右键。
5 。选择New->整数
6 。粘贴您之前复制的 string ,然后单击OK
7 。在
下一个对话框中输入interger 0 ,然后单击确定。
8 。关闭about:config页面。







此解决方案如下:



停止Firefox显示& quot;防止FireFox显示其他对话框& quot;消息 - 堆栈溢出 [ ^ ]

解决方案

你陷入了许多询问者在这里犯下的逻辑错误。



让我们说,你面临一个问题你不能做ABC。你得出一个结论我需要更加努力地做ABC。得出了正确的结论吗?没有! ABC可能意味着以高于光速的速度传递数据。即使不谈论不可能的事情,整个方法在逻辑上也是错误的。你现在觉得荒谬吗?请仔细阅读这篇文章: 不愉快的询问者或滥用是否是编程的主要目的? :-)



现在,让我们继续我们的逻辑练习。实际上,你的弹出窗口会被很多人阻止。想象一下,你可以找到克服阻塞的方法。但如果有可能,这意味着阻止机制有效地解散。谁需要使用这种阻止?不,如果弹出窗口被阻止,它们会被阻止。



那么,该怎么办?你真的想避免弹出窗口。相反,人们在功能上使用机制有点类似于弹出窗口,但没有创建任何新的浏览器窗口或选项卡。这些设施统称为模态弹出。模态行为(一种)在同一页面上模拟。与弹出式窗口/标签相比,这种方法有很多好处。



首先,我建议看看我关于这个主题的文章: 从零开始的模态弹出



我不仅从头开始解释模态弹出的开发,我还讨论了整个问题。您不需要使用我的组件;你可以开发自己的或使用其中一个可用的。您可以使用jQuery Dialog 或许多第三方模式弹出组件(其中许多是jQuery UI插件),具有许多效果,如调光(我实现)和许多我没有实现的,比如各种过渡效果等等。



请参阅:

对话| jQuery UI

JavaScript模式弹出



如您所见,唯一的限制是您必须在大多数情况下使用jQuery;但是如果你不想使用它,我也可以从头开始实现这一点,正如我在文章中所描述的那样。



-SA

sir, i have a web base application that developed in asp.net and vb.net. In my Application i am using PopUp windows to show crystal reports. i am facing to much problem of automatic PopUp Blocking in any browser like firefox . browser automatic block popup windows again and again. Every time i have to reinstall firefox to show crystal report in popup windows.


please give some solution that stop automatic popup blocking in firefox. and now show any blocking msg when i use my application

What I have tried:

i am using some methods to solve this problem like :

1. Copy this string to your clipboard: dom.successive_dialog_time_limit
2. In FireFox Address bar Enter: about:config and press enter.
3. Accept the warning dialog.
4. In the preferences area right-click.
5. Select New-> Integer
6. Paste the string you copied previous and click OK
7. Enter the interger 0 in the next dialog box and click OK.
8. Close the about:config page.




this solution like is :

Stop Firefox from displaying the "Prevent FireFox from displaying additional dialogs" message - Stack Overflow[^]

解决方案

You fall into the logical mistake many inquirers here make.

Let's say, you face a problem "you cannot do ABC". And you make a conclusion "I need to try harder to do ABC". Is at a right conclusion? No! "ABC" may mean "pass data with the speed higher than speed of light". Even without talking about the impossible, the whole approach is logically wrong. Do you feel the absurdity now? Please read this post carefully: Unhappy Inquirer or Is the Abuse the Main Purpose of Programming? :-)

Now, let's continue our logical exercises. Indeed, your popup will be blocked by many. Imagine that you could find a way to overcome blocking. But if it was possible, it would mean than the blocking mechanism is effectively defunct. Who would need to use such blocking? No, if pop-ups are blocked, they are blocked.

So, what to do? You really want to avoid pop-ups. Instead, people use the mechanism functionally somewhat similar to pop-ups, but without creating any new browser windows or tabs. Such facilities are collectively known as "modal popup". The modal behavior (a sort of) is simulated on the same page. This approach have great number of benefits compared to pop-up windows/tabs.

To start with, I would recommend to look at my article on the topic: Modal Popup From Scratch.

Not only I explain the development of modal popup from scratch, I discuss the whole problem. You don't need to use my component; you can develop your own or use one of the available ones. You can use jQuery Dialog or many 3rd party "modal popup" components (many of them are jQuery UI plug-ins) featuring many effects like dimming (which I implemented) and many which I did not implement, such as various transition effects, and more.

Please see:
Dialog | jQuery UI,
JavaScript modal popup.

As you can see, the only limitation is that you have to use jQuery in most of these cases; but if you don't want to use it, there is also a way to do it from scratch, as I described in my article.

—SA


这篇关于用于Web基础ASP.NET应用程序的firefox弹出窗口中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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