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...

if the window is opened with js it will close it automatically with no prompt



On 7/20/05, Tracy Spratt <[EMAIL PROTECTED]> wrote:

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: [email protected] [mailto:[email protected]] On Behalf Of Jeff Steiner
Sent: Wednesday, July 20, 2005 12:31 AM
To: [email protected]
Subject: [flexcoders] Looking for a consistent way to close the current browser window in Flex

 

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,

Jeff

Founder

Flex Authority

http://www.flexauthority.com

 

We are actively seeking contributors for the site.  Have a sample that you want to share with the world?  Send it to us!




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Computer software testing Macromedia flex Development
Software developer


YAHOO! GROUPS LINKS






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Computer software testing Macromedia flex Development
Software developer


YAHOO! GROUPS LINKS




Reply via email to