<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
It doesn't close the window, but you said you tested it with an alert in the JS and it is actually trying to do something?<BR>
Or am I having a senior moment?<BR>
&nbsp;<BR>
<BR><BR>&nbsp;<BR>

<HR>
<BR>
Subject: RE: [Xerte] Is there a way to make an exit button?<BR>Date: Thu, 7 Aug 2008 14:42:44 -0700<BR>From: Paul.Swanson@harlandfs.com<BR>To: xerte@lists.nottingham.ac.uk<BR><BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<DIV dir=ltr align=left><SPAN class=EC_073452521-07082008><FONT face=Verdana color=#0000ff size=2>I changed the case to <FONT face="Courier New" color=#000000>getURL('javascript:closeWindow()');</FONT> but it still doesn't work. I also tried adding the following to the main setup script:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_073452521-07082008><FONT face=Verdana color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_073452521-07082008><FONT face="Courier New" size=2>// set security to allow access to scripts in our domain.<BR>System.security.allowDomain('*.harlandds.com');<BR>System.security.allowDomain('localhost');</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_073452521-07082008><FONT face=Verdana color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_073452521-07082008><FONT face=Verdana color=#0000ff size=2>I'm testing on localhost. The updated file still doesn't close the window. It does (and did this with getURL) cause Firefox to open a new tab, but it's blank. The Xerte window stays open. Oh, and Firebug (a Firefox plugin for web developers) reports "closeWindow is not defined" as a javascript error. I'm sure that's because it isn't finding the JS code in the web page.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_073452521-07082008><FONT face=Verdana color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_073452521-07082008><FONT face=Verdana color=#0000ff size=2>P</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=EC_OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Julian Tenney<BR><B>Sent:</B> Thursday, August 07, 2008 2:08 PM<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Is there a way to make an exit button?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=EC_idOWAReplyText71904 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>getURL should work. Check the case.</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Paul Swanson<BR><B>Sent:</B> Thu 07/08/2008 18:10<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Is there a way to make an exit button?<BR></FONT><BR></DIV>
<DIV>
<DIV dir=ltr align=left><SPAN class=EC_895250417-07082008><FONT face=Verdana color=#0000ff size=2>So how do you access external javascript? I've added the following to the script section of the html page:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_895250417-07082008><FONT face=Verdana color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_895250417-07082008><FONT face="Courier New" size=2>function closeWindow () {<BR>&nbsp;&nbsp;&nbsp; // closes this window<BR>&nbsp;&nbsp;&nbsp; self.close ();<BR>}</FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana>I've tried calling it with:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" size=2>getUrl('javascript:closeWindow()');</FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana>and:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" size=2>ExternalInterface.call('closeWindow');</FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana>Neither work, so I know I'm not doing it right. What's the correct command and syntax? fsCommand?</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana>Paul</FONT></DIV>
<DIV dir=ltr align=left><BR></DIV></FONT></SPAN><BR>
<BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=EC_OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Julian Tenney<BR><B>Sent:</B> Thursday, August 07, 2008 12:56 AM<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Is there a way to make an exit button?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=EC_426075407-07082008><FONT face=Arial color=#0000ff size=2>You've got it - it will have to be some javascript. I don't know if you can close the window without that 'a script is trying to close this window' security dialog.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_426075407-07082008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_426075407-07082008><FONT face=Arial color=#0000ff size=2>Let me know how you get on - I could add a close function to the html pages Xerte publishes,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_426075407-07082008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_426075407-07082008><FONT face=Arial color=#0000ff size=2>J</FONT></SPAN></DIV><BR>
<DIV class=EC_OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Paul Swanson<BR><B>Sent:</B> 06 August 2008 23:45<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> [Xerte] Is there a way to make an exit button?<BR></FONT><BR></DIV>
<DIV></DIV>
<FONT face=Verdana size=2>Is there a command that will close the Flash window? rootIcon.exit(); leaves the "Loading Complete" message on screen. Or will I have to call some javascript in the html page that launches the course?</FONT><BR>
<FONT face="Courier New" color=#808080 size=2>_____________________________</FONT> <BR>
<FONT face="Courier New" color=#808080 size=2>&nbsp;Paul Swanson</FONT> <BR><FONT face="Courier New" color=#808080 size=2>&nbsp;Portland, Oregon, USA</FONT> <BR><FONT face="Courier New" color=#808080 size=2>_____________________________</FONT> <BR></BLOCKQUOTE></DIV></BLOCKQUOTE><br /><hr />Your PC, mobile phone, and online services work together like never before. <a href='http://clk.atdmt.com/MRT/go/108587394/direct/01/' target='_new'>See how Windows® fits your life</a></body>
</html>