Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

pop in IE vs Firefox

Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are facing a problem with firefox.

We have a customer facing application. 56 percent of our users are IE, 42 are firefox. We need to popup a new survey.

We are using on page unload to popup. We don't have any issue with this in IE. But in firefox, netscape and safari we have an issue in how works.

Issue:The current window displays the normal business page. If the user goes away to another url or closes the window a popup with a survey popus up. We are using to open the new window. In firefox, if the user closes the current window, the popup will come up flickers and goes away. The user is not able to see the popup window.

In firefox a child window is opened when we make a javascript call But when the javascript method finishes the parent window is closed forcing to close the child window too.

We want the child window to stay even when the parent is closed.

Does anybody encountered this? We really appreciate if anybody could suggest a solution.

Other options we tried
We tried getting an anchor and clicking on the anchor.
But that didn't help.
Posts: 15385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is called a pop up blocker and there is going to be no way to get around it unless people add you to their safe list. IE7 Users should also run into this problem since they too havea pop up blocker installed. People who have the google toolbar or other toolbars in IE6 have pop ups blocked.

jiju ka
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

The issue is not with popuop blocker. We are checking whether popup blocker is active on user's browser and the survey-popup displays only if popup blocker is not active.

The issue is with parent child window relation in firefox and similar mozilla based browsers. In firefox the child window closes automatically when the parent window closes. In IE the child window stays even if the parent window closes. In this particular scenario the child window is created from a script running in parent window.

I think the issue will be clear with above paragraph.

The solution we expect is for the pop up window to stay even if the parent window is closed.

if user types another url in the address bar, the page's onunload function triggers the and popup is displayed. Even in firefox, the popup stays in this case (because the parent is not closed.) So the problem is not with popup blocker.

[ September 07, 2007: Message edited by: jiju ka ]
[ September 07, 2007: Message edited by: jiju ka ]
    Bookmark Topic Watch Topic
  • New Topic