Re: [flexcoders] Looking for a consistent way to close the current browser window in Flex

2005-07-21 Thread JesterXL





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 Message - 
From: Jeff 
Steiner 
To: flexcoders@yahoogroups.com 
Sent: Thursday, July 21, 2005 11:49 AM
Subject: RE: [flexcoders] Looking for a consistent way to close the 
current browser window in Flex


Is there a better way 
of doing this?
 

Jeff

 



From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] 
On Behalf Of Jeff 
SteinerSent: Tuesday, July 19, 
2005 9:31 PMTo: 
flexcoders@yahoogroups.comSubject: [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





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Looking for a consistent way to close the current browser window in Flex

2005-07-21 Thread Jeff Steiner










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





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Looking for a consistent way to close the current browser window in Flex

2005-07-20 Thread Clint Modien



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: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Jeff Steiner
Sent: Wednesday, July 20, 2005
12:31 AM
To: flexcoders@yahoogroups.com
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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  

















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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Looking for a consistent way to close the current browser window in Flex

2005-07-20 Thread Tracy Spratt










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, 2005
12:31 AM
To: flexcoders@yahoogroups.com
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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.