Skip to main content
Participant
July 1, 2010
Question

navigateToUrl - IE8 pop up block

  • July 1, 2010
  • 1 reply
  • 2872 views

I have a question:  The following code, which works OK in Firefox and Safari, gets IE8 to throw a pop up block

The simple code:

homeButton.addEventListener(MouseEvent.MOUSE_DOWN, smartlamp);

function smartlamp(event:MouseEvent):void


{
navigateToURL(new  URLRequest("http://www.hanegal.dk/Allergi_venlige_produkter.asp"),  "_blank");
}

example: http://www.allergiskhverdag.dk/TILBUD/hanegal/

Have I done something wrong here?

Round the internet I have found all sorts of workarounds - but eh.....  why?

using _blank on the other (html) links in my site works as expected without getting blocked

Suggestions are appreciated

Regards Henrik

This topic has been closed for replies.

1 reply

glensboAuthor
Participant
July 1, 2010

Could anyone - perhaps from adobe - explain the reason for the peculiar pop up block caused by IE8 following my codeexample. I have looked around for different solutions , but ends up with classes and other long workarounds - which seems unnecessary for such a simple operation as linking to a foreign page. Hope to get some clues as to solve this problem.

Regards

Henrik

glensboAuthor
Participant
July 2, 2010

I have found the following addresses on the net showing how to by-pass the problem described above - but as stated earlier why is this neccessary?

http://www.zorked.com/flash/flash-and-navigatetourl-popup-blocking/

http://apdevblog.com/problems-using-navigatetourl/ with 2 references to other sites trying to solve the problem

Thanks for any help

Kartik_Mehta
Inspiring
July 2, 2010

Hi glensbo,

I have faced this kind of issue in one of my projects. I solved the problem by detecting the browser and using ExternalInterface.

As you have posted link http://apdevblog.com/problems-using-navigatetourl/ it worked for me fine.