|
-
is there a definitive javascript pop-up?...
...that works in all browsers?
I've been struggling (i.e. unable) to get a pop-up, triggered by a button in my flash movie, to launch across multiple browser platforms. No matter which variation I use, I've been unable to get one to launch in Safari (my pop-up blocker is turned off).
IE is always OK though.
I'm using getURL("javascript: etc").
I've tried entering the entire command this way.
and I've tried passing variables to a function in the HTML.
Both of these ways are mentioned repeatedly within the FlashKit forums, but none I've located work in Safari for me.
For testing purposes I've tried to merely trigger a function which sets off an alert window... again this hasn't worked in Safari.
I'm using OS X, and the flash is exported as version 6
Perhaps it's syntax I'm using? Or maybe I'm just missing something which is necessary for Safari.
I'd be very grateful if someone could enlighten me to the definitive process / code that launches a pop-up in IE, firefox, safari.
Thank you.
Jon
-
Popups From Flash
I doubt they are "definitive", but they have worked for me and both are kind of old skool so they should work with your export settings and have been tested on Mac/Firefox 1 and 1.5 and Safari and Windows XP/Firefox 1 and 1.5 and IE 6.
In dynamic text I have used this:
<a href="javascript:windowPopUp=window.open('/contact/pageFormContact.html','windowPopUp','width=340,hei ght=750,left=20,top=20,
toolbar=No,location=No,scrollbars=Yes,status=No,re sizable=Yes,fullscreen=No'); NewWindow.focus(); void(0);"><font color="#D66C30"><u><b>email form</b></u></font></a>
The ActionScript/JavaScript that I use on my buttons for the same thing looks like this:
on (release) {
getURL ("javascript:windowPopUp=window.open('/contact/pageFormContact.html','windowPopUp','width=340,hei ght=750,left=20,top=20,
toolbar=No,location=No,scrollbars=Yes,status=No,re sizable=Yes,fullscreen=No'); NewWindow.focus();
void(0);");
}
Let me know how it goes.
Last edited by wozbk; 02-10-2006 at 12:12 AM.
-
Thanks Wozbk!
I guess it must've been the syntax I was using, as your version works a treat. One thing though, in my testing with IE (on mac), the addition of toolbar=No,location=No,status=No actually had the opposite effect - in order to remove them I just removed mention of them in the script.
Anyway thanks again
Jon
-
IE/Mac Issue
 Originally Posted by jon ps
Thanks Wozbk! One thing though, in my testing with IE (on mac), the addition of toolbar=No,location=No,status=No actually had the opposite effect - in order to remove them I just removed mention of them in the script.
Thanks for the heads up on the IE/Mac issue and glad the code worked well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|