Is there a better way of doing this?
Jeff
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Steiner
Sent: Tuesday, July 19, 2005 9:31
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Looking for
a consistent way to close the
Define better. To me, I'd use the
_javascript_ Flash Integration Kit that MM put out, and call
proxy.call("closeWindow");. Integrates nicer into code than getURL, works
on more browsers, and you can get a callback if need be.
http://www.osflash.org/doku.php?id=flashjs
- Original
See if this makes any difference:
getURL(_javascript_:window.opener=self;
window.close(););
And I only use IE. There are likely
browser issues.
Tracy
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Steiner
Sent: Wednesday, July 20,
yep...
can't close a dialog in firefox with _javascript_ unless the user has his browser set up to do that...
which is not the default..
in IE unless the window was opened with _javascript_ you'll get a prompt
saying a script is trying to close the window... do you want to let it
do that...
I am looking to close a window after a
Flex app loads in it. I am using the following function it seems to
close every now and then but not all the time.
function closeWindow() {
getURL('_javascript_:window.close()');
}
Anyone have a sure fire way of doing this?
Thanks,
5 matches
Mail list logo