Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 9:20 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Flex - Force IE close upon Exit command?
PostPosted: March 27th, 2006, 12:32 am 
Offline

Joined: January 8th, 2005, 9:51 pm
Posts: 9
Is it possible to force IE to close (no Microsoft "close confirmation" dialogue) when the EXIT command is issued in Flex?


Top
 Profile  
 
 Post subject:
PostPosted: March 27th, 2006, 9:52 am 
Offline

Joined: October 25th, 2004, 12:32 pm
Posts: 397
Location: Digital Workshop
To the best of my knowledge there is no way to close IE without the confirmation dialogue this is by design of Microsoft.


Regards

Brenden Knifton ddww


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 27th, 2006, 2:17 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
You can do this with a couple of caveats.

The stuff below is a Flash/JavaScript call.

getURL("javascript:window.opener = window;window.close();");

I tested with Flash Player 8. It requires you to set its security settings in order to close IE 6.0 without message box. I'm guessing people wouldn't know how to do this, nor want to do this. The confirm has always been there as a built-in security device, and probably shouldn't be overridden, but you can do as you want/need.


This is what happens in browsers based on just calling the Javascript from regular HTML.

Netscape 4.06 - Prompts the user about trying to close a window (I didn't see
this message, someone else tested it for me).
Netscape 4.80 - closes window without a prompt.
IE5.0 - prompts the user.
IE5.5 - Cant find anyone who has IE5.5 so untested there.
IE6.0 - closes window without a prompt.
Netscape 7 - closes the window without a prompt.
Opera 7 - closes the window without a prompt.
Phoenix 0.5 - closes the window without a prompt.
Mozilla 1.4 - No prompt, just an error message "Scripts may not close windows
that were not opened by script." in the Javascript console.

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 27th, 2006, 4:33 pm 
Offline

Joined: January 8th, 2005, 9:51 pm
Posts: 9
Thanks, guys.

There is also a link at MSDN (below), but I have no idea how to implement it in Flex.

http://msdn.microsoft.com/library/defau ... lose_0.asp

Best ... John


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 79 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group