How to avoid pop-up blockers when using a window in your ASP.NET web site?

26. Jul 2007

A challenge when making critical web applications and want to have pop-up windows or some kind of more complex dialog boxes, is to make your web site work 100% even though the users browser has a pop-up blocker installed and enabled. A common approach is to implement a window.open JavaScript snippet. The problem is of course that this will not work properly when pop-ups are blocked, and give a bad user experience and make your web site a less positive experience. It shouldn't be necessary for the user to have to configure his or her browser to allow such browser pop-ups from your site.

In addition, when having functionality in such JavaScript window it is no fun to be a programmer... You have no access to the elements in the new window, except from making even more dirty JavaScript code, or maybe store the values in a (also dirty) session object. Some other drawbacks of using a browser window are that they are slow to open, impossible to give a custom and good look.

Pop-Up are blocked when using open.window

As we have seen, there are some challenges we need to sort out:
  • a window that don't get stopped by a pop-up blocker
  • full control server side of all controls and logic that are inside the window
  • fast to open
  • easy to skin
  • full Ajax support

The solution


Gaia.Window is what you are looking for. It will give you the opportunity, along with all the other great widgets in this library, to create desktop like web applications in the speed of light!

Benefits of Gaia.Window:


  • No need to write JavaScript
  • WYSIWYG in Visual Studio (if you like that)
  • Can host any Gaia Control inside window
  • Trap server side events like OnClosing, OnMoved, OnResized etc.
  • IsModal property
  • Skins available
  • Lightweigth

Gaia Ajax Window

Samples (click the Show code button after opening them)



AddThis Social Bookmark Button Add to DZone AddThis Feed Button

 
Legal note: the meaning and content expressed on these blogs don't necassary correspond with the meaning of the legal company Gaiaware AS, but are considered to be personal opinions and expressions.