Groups | Blog | Home
all groups > flash actionscript > may 2005 >

flash actionscript : Bypass pop-up blocker ?


SMakinson
5/16/2005 12:00:00 AM
Hmm, I just tried adding your html to a text field with html set to true and
opened it with ie on XP and it did not block me. Do you actually see that
notice on the top indicating your were blocked?

I really dont think normal link targets are blocked by these, just javascript
initiated popups. Is the file up somewhere I can go try to click on it?
SMakinson
5/16/2005 12:00:00 AM
I did think popup blockers did not interfere with user initiated popups. Are
your links using window.open()? You can probably get it to work using
target="_blank" in your link instead if that is the case.
EIlves
5/16/2005 12:00:00 AM
David I understand what you mean, but in my case the pop-up is user initiated
like SMakinson marked.

My txt file code looks like this :

info=<p><span class="center"><a href="http://www..."
target="_blank">Link</a></span></p>

I have no idea why this is blocked by SP2, when it is processed through
Flash.
mpetty
5/16/2005 12:00:00 AM
not having tried this, it's only a suggestion based on a hunch. Have you tried
naming your target to a specified window? If that window doesn't exist, it will
still open it to a new one (example: target="picsFullSize"). The only thing I
can think of even with user initiated windows from "blank" is they can be
repeatedly clicked and will load the exact same content every single time to a
new window thereby sapping the users own bandwidth efficiency.
EIlves
5/16/2005 12:00:00 AM
Hello, I have loaded an external textfile into flash with links, but if you
click on the link under Win XP the new window gets blocked by the pop-up
blocker. Is there a way to bypass it? My clients would go nuts disabeling the
pop-up blocker all the time :S

Thank you very much in advance!
David Stiller
5/16/2005 1:17:07 PM
EIlves,

[quoted text, click to view]

Can you imagine what would happen if spammers and people of their ilk
got ahold of a technique to bypass blockers? I'm afraid this is simply the
world we live in nowadays. Popups aren't what they used to be. They're no
longer something to rely on.


David
stiller (at) quip (dot) net
"Luck is the residue of good design."

David Stiller
5/16/2005 3:24:09 PM
[quoted text, click to view]

Interesting. That's not even "popup" script, per se, it's simply a link
with target = "_blank" ... honestly, that shouldn't get blocked, but outside
of SMakinson's suggestion (which is what you're using!) I don't know what to
tell you.

Have you tried triggering a JavaScript function embedded in the HTML
page? Results are mixed lately, based on the discussion above, but you'd be
using a different protocol from inside Flash (the javascript: protocol).
Worth a shot, anyway, right?


David
stiller (at) quip (dot) net
"Luck is the residue of good design."

EIlves
5/17/2005 12:00:00 AM
The site address is here : www.konecranes.ee

Sorry that there is no English language option. But on the lowest menu choose
the last option "Tooted", then a slide-show like section should open and under
the image, is its name, with the notorious pop-up problem.

You had me thinking I went nuts for a while, but I again checked it on XP OS
and my pop-up got blocked, unless I intentionally turned it off, but thats not
a solution as many people don't know how to do that :)
SMakinson
5/17/2005 12:00:00 AM
Ok, now I am confused and curious. I also get blocked.
Microsofts description of how it works is here:
http://www.microsoft.com/windowsxp/using/web/sp2_popupblocker.mspx
"The default settings for the pop-up blocker allow you to see pop-ups that are
opened when you click a link or button on a Web site."

That leaves me wondering what is the cause. Do all of your links goto
different domains? My test was done locally by opening a file from ie. Im gonna
do some testing and I'll let you know if I figure anything out. This will be
helpful info for everyone if we solve this.
SMakinson
5/17/2005 12:00:00 AM
I found another post that says using window.open() in flash actually solves the problem.

Maybe give it a try and let me know if it works.

EIlves
5/17/2005 12:00:00 AM
SMakinson
5/17/2005 12:00:00 AM
Oh ya, sorry...
Loosing my mind :)

EIlves
5/17/2005 12:00:00 AM
Things are getting very complicated, I thought there was an easier way to
prevent this. My AS knowledge is not that wide to conduct that kind of
scripting. I thought of adding an extra button to the stage in flash that
dynamically changes the getURL as slides change..
SMakinson
5/18/2005 12:00:00 AM
EIlves
5/20/2005 12:00:00 AM
Actually not, this undertaking would be very time-consuming. I thought there was a easier way to solve it :/


AddThis Social Bookmark Button