<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><SPAN class=705292922-07082008><FONT face=Verdana
color=#0000ff>Good idea, Dave. Tried it, but same results, dang
it.</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Dave
Burnett<BR><B>Sent:</B> Thursday, August 07, 2008 3:25 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>Susbstitute an alert for the close logic.<BR>Just to see if the
function is executing.<BR><BR> <BR>
<HR>
<BR>Subject: RE: [Xerte] Is there a way to make an exit button?<BR>Date: Thu,
7 Aug 2008 15:15:42 -0700<BR>From: Paul.Swanson@harlandfs.com<BR>To:
xerte@lists.nottingham.ac.uk<BR><BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>.ExternalClass .EC_hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
.ExternalClass BODY.EC_hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>
<DIV dir=ltr align=left><SPAN class=EC_277001422-07082008><FONT face=Verdana
color=#0000ff>Not an alert. I just ran the code as I've written it below. The
getURL caused a blank tab to open while leaving the window the course is
running in open.</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
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><B>From:</B> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Dave
Burnett<BR><B>Sent:</B> Thursday, August 07, 2008 3:10 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>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> <BR><BR><BR> <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>
<DIV dir=ltr align=left><SPAN class=EC_EC_073452521-07082008><FONT
face=Verdana color=#0000ff>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_EC_073452521-07082008><FONT
face=Verdana color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_073452521-07082008><FONT
face="Courier New">// 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_EC_073452521-07082008><FONT
face=Verdana color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_073452521-07082008><FONT
face=Verdana color=#0000ff>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_EC_073452521-07082008><FONT
face=Verdana color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_073452521-07082008><FONT
face=Verdana color=#0000ff>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_EC_OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma><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_EC_idOWAReplyText71904 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000>getURL should work. Check the
case.</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR>
<FONT face=Tahoma><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_EC_895250417-07082008><FONT
face=Verdana color=#0000ff>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_EC_895250417-07082008><FONT
face=Verdana color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_895250417-07082008><FONT
face="Courier New">function closeWindow () {<BR> //
closes this window<BR> self.close
();<BR>}</FONT></SPAN></DIV>
<DIV><SPAN class=EC_EC_895250417-07082008><FONT face="Courier New"
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=EC_EC_895250417-07082008><FONT face="Courier New"
color=#0000ff><FONT face=Verdana>I've tried calling it
with:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=EC_EC_895250417-07082008><FONT face="Courier New"
color=#0000ff><FONT face=Verdana></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=EC_EC_895250417-07082008><FONT
face="Courier New">getUrl('javascript:closeWindow()');</FONT></SPAN></DIV>
<DIV><SPAN class=EC_EC_895250417-07082008><FONT face="Courier New"
color=#0000ff><FONT face=Verdana></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=EC_EC_895250417-07082008><FONT face="Courier New"
color=#0000ff><FONT face=Verdana>and:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=EC_EC_895250417-07082008><FONT face="Courier New"
color=#0000ff><FONT face=Verdana></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=EC_EC_895250417-07082008><FONT
face="Courier New">ExternalInterface.call('closeWindow');</FONT></SPAN></DIV>
<DIV><SPAN class=EC_EC_895250417-07082008><FONT face="Courier New"
color=#0000ff><FONT face=Verdana></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=EC_EC_895250417-07082008><FONT face="Courier New"
color=#0000ff><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_EC_895250417-07082008><FONT face="Courier New"
color=#0000ff><FONT face=Verdana></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=EC_EC_895250417-07082008><FONT face="Courier New"
color=#0000ff><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_EC_OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma><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_EC_426075407-07082008><FONT
face=Arial color=#0000ff>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_EC_426075407-07082008><FONT
face=Arial color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_426075407-07082008><FONT
face=Arial color=#0000ff>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_EC_426075407-07082008><FONT
face=Arial color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=EC_EC_426075407-07082008><FONT
face=Arial color=#0000ff>J</FONT></SPAN></DIV><BR>
<DIV class=EC_EC_OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma><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>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>_____________________________</FONT> <BR><FONT
face="Courier New" color=#808080> Paul Swanson</FONT> <BR><FONT
face="Courier New" color=#808080> Portland, Oregon, USA</FONT>
<BR><FONT face="Courier New"
color=#808080>_____________________________</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=_blank>See
how Windows® fits your life</A> </BLOCKQUOTE><BR>
<HR>
Get Windows Live and get whatever you need, wherever you are. <A
href="http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home_082008"
target=_new>Start here.</A> </BLOCKQUOTE></BODY></HTML>