Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 2nd, 2006, 06:53 AM
Authorized User
 
Join Date: Jun 2006
Location: , , .
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default ClientScript. : window.open -> Popup Blocker Issue

††Hi ALL!
    I am using the JavaScript window.open in my asp.net 2.0 application via ClientScript.RegisterStartupScript.
    Window.Open behaves perfectly on some machines while on some machines it becomes failed with showing the Status of "PopUp Blocks" in Status Bar.
    †Each Machine is installed with same version (6.0) of Internet Explorer.
    †Having any IDEA/Solution then plz help me.
  #2 (permalink)  
Old September 2nd, 2006, 03:34 PM
Friend of Wrox
 
Join Date: Feb 2006
Location: , , USA.
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have run into this same problem, and as far as I know there is no conventional way for anything you code to get around those popup blockers, and quite frankly that is the way it should be. Those blockers are there for a reason.

One way to get around it, is to make or buy controls that provide the functionality you were using in a popup window, in the same window client side. Case in point: a date picker popup window can be replaced with a javascript date picker that runs in the same window.

Another option is to provide instructions for your users on how to exempt your sites popups from being blocked, and that they must allow popups for your site to operate properly.

Neil Timmerman
Programmer
Veris Consulting
  #3 (permalink)  
Old September 15th, 2006, 08:25 AM
Authorized User
 
Join Date: Sep 2006
Location: Bangalore, Karnataka, India.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The reason for this is because IE 6.0 has a popup blocker. While your popup is legitimate, the popup blocker is enabled (even on my system) to stop all the nonsense of advertisements windows coming on the screen, when a particular site is opened. The result, legitimate ones are disabled.

Since this is not a code issue, you have to get around by asking users to modify their IE popup blocker settings and add your site to the allow-popup list. Also add a message on your site to add yoursite to the trust list so that popups can be enabled. And ensure that no ads are put up lest they block it again.


Vincent Thomas
Bangalore
  #4 (permalink)  
Old September 20th, 2006, 10:59 AM
Authorized User
 
Join Date: Apr 2005
Location: Spanish Fork, UT, USA.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to DudeBori82 Send a message via MSN to DudeBori82
Default

The only window.open methods that don't cause the pop-up blocker reaction, in my experience, are window.open methods that are caused by a deliberate user action, such as clicking a button. If you set onclick='window.open'GCCManage.aspx','ManageCashCa rd','width=800,height=600')', then it will not trigger pop-ups, because the user wanted the reaction of the button.

Troubleshooting life: 1 bug at a time.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
open popup window with text reddyshekar C# 2005 1 July 2nd, 2007 09:34 AM
Session tracking with google popup blocker dshamim Classic ASP Professional 0 December 20th, 2006 09:48 AM
JavaScript : window.open -> Popup Blocker Issue AbrarNazeer Pro JSP 0 September 2nd, 2006 06:49 AM
open popup window in asp.net rajn ASP.NET 1.0 and 1.1 Basics 6 August 2nd, 2006 07:23 AM
PopUp blocker In C# VB.net nashnash ASP.NET 1.0 and 1.1 Professional 1 September 29th, 2004 04:53 AM



All times are GMT -4. The time now is 08:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.