Detecting in Javascript when activity is exited on Moodle
I am developing content for an LMS (Moodle) using Captivate and Dreamweaver.
I am using Captivate to provide the wrapper with Scorm interfacing with the LMS.
Dreamweaver is used to create a web object coded with Javascript (a lot). The object opens in a window.
It's all working to plan with the exception that when activity is exited in the Moodle window, the object window remains open and the object Javascript no longer functions as intended.
The issue is that my web object Javascript isn't informed by Moodle that the activity has ended.
Is there an event that I can pickup via the Captivate/Rustici Scorm Driver that I can use to trigger the closing of my web object window/tab??
I'm having difficulty finding anything suitable.
