Click here to Skip to main content
15,904,023 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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 :

C#
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[^]
Posted
Updated 14-May-16 4:40am

1 solution

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
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900