View Full Version : Flash pop-up probs -OR- onLoad options?
citizenvern
07-16-2005, 02:42 AM
Hi JS'ers. Simple question: Is it possible to set a window's features after it pops up? I'm forced to try this because Explorer isn't letting my Flash site open specific windows using javascript. If anyone knows why that is, then that would be :thumbsup:
Thanks for any advice. It's much appreciated.
rlemon
07-16-2005, 04:32 AM
little more detail would be helpfull. :thumbsup:
_Aerospace_Eng_
07-16-2005, 05:14 AM
Hmm you might be able to call an external javascript function in your page by using getURL and making the url value javascript:yourfunction(), like so
on(release){
getURL("javascript:yourfunction()","","POST");
}
that would go in the actionscript for that button once you put it in Scene 1 but it might be another issue so yeah we need to see your code or a link to your page.
citizenvern
07-17-2005, 09:47 PM
Actually my original pop-up was just that:
on(release){
getURL("javascript:yourfunction()","","POST");
}
It worked great in Safari and Opera, but not for Explorer(either platform). The pop-ups just didn't work. So i thought maybe i could just use a plain getURL without the JS, but then i can't control the pop-ups features (not that i know of) other than to put an <body onLoad=" resizeTo(382,430);"> in the pop-ups code.
Is there any way to set window features (menubar, toolbar, location, etc.) after the pop-up has popped? Maybe i should just stick to Flash. This is frustrating dealing with all of this cross-browser, cross-platform BS. :mad: Such is the geek life though, right? :rolleyes:
Thanks a lot for your time & interest, it's very much appreciated.
rlemon
07-18-2005, 06:34 PM
if you are running IE SP2 there is auto popup blockers.
from a anchor tag they will not prevent anything (as far as i know) however when calling pages from JS it may read it as a popunder ad and block it.
disable your popup blocker and test it out.
citizenvern
07-22-2005, 02:54 AM
I could set the menubar, toolbar, navbar, etc. to invisible onLoad, right? I'm just having a hard time with the actual syntax. How would i say "window.onLoad(toolbar=invisible, etc.) or somesuch? :confused:
_Aerospace_Eng_
07-22-2005, 03:13 AM
You can't you would need to use window.open
<a href="somepage.html" onclick="window.open(this.href,'somename','width=600,height=600,scrollbars=0,menubars=0,toolbars=0,directorie s=0,status=0');return false">Open Window</a>
You can only set those options using javascript to open the window.
citizenvern
07-23-2005, 02:41 AM
Consarn it! What a pain. I read that I could set the features of an already open window, but the javascript has to be "signed". I'm just going to assume that's a can of worms not worth opening.
FYI, i've settled on a workaround. I have an index intro page with an "onLoad" JS that pops the main site with no chrome on the windows. If that gets blocked there's a standard html link that will open the window with the default stuff. Good enough for me. Thanks a lot for your time and attention. Es muy apreciado.
:thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.