[Xerte] Is there a way to make an exit button?

Dave Burnett d_b_burnett at hotmail.com
Thu Aug 7 22:13:18 BST 2008


Possibility of security issues?
Maybe with 8 you need to add the AllowDomain or something?
Just shooting in the dark.
 
Dave



Subject: RE: [Xerte] Is there a way to make an exit button?Date: Thu, 7 Aug 2008 22:07:50 +0100From: Julian.Tenney at nottingham.ac.ukTo: xerte at lists.nottingham.ac.uk


getURL should work. Check the case.


From: xerte-bounces at lists.nottingham.ac.uk on behalf of Paul SwansonSent: Thu 07/08/2008 18:10To: Xerte discussion listSubject: RE: [Xerte] Is there a way to make an exit button?

So how do you access external javascript? I've added the following to the script section of the html page:
 
function closeWindow () {    // closes this window    self.close ();}
 
I've tried calling it with:
 
getUrl('javascript:closeWindow()');
 
and:
 
ExternalInterface.call('closeWindow');
 
Neither work, so I know I'm not doing it right. What's the correct command and syntax? fsCommand?
 
Paul




From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian TenneySent: Thursday, August 07, 2008 12:56 AMTo: Xerte discussion listSubject: RE: [Xerte] Is there a way to make an exit button?

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.
 
Let me know how you get on - I could add a close function to the html pages Xerte publishes,
 
J


From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul SwansonSent: 06 August 2008 23:45To: Xerte discussion listSubject: [Xerte] Is there a way to make an exit button?

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?
_____________________________ 
 Paul Swanson  Portland, Oregon, USA _____________________________ 
_________________________________________________________________
Reveal your inner athlete and share it with friends on Windows Live.
http://revealyourinnerathlete.windowslive.com?locale=en-us&ocid=TXT_TAGLM_WLYIA_whichathlete_us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20080807/5c18d20f/attachment.html


More information about the Xerte mailing list