Skip to main content
Participant
September 14, 2016
Question

Captivate 9 close button html5 docebo

  • September 14, 2016
  • 1 reply
  • 168 views

I use a close button in the last slide that recall the function DoCPExit() to close the course. This method works correctly when the course is open by browser desktop, but if the course is open by the docebo app or by ipad, the app or safari crashes.

The function DoCPExit() in the file Utilities.js has been modified by adding:

if(SCORM2004_objAPI){SCORM2004_CallTerminate();}

if(SCORM_objAPI){SCORM_CallLMSFinish();}

But this change does not seem to make improvements. Has anyone ever had to deal with captivate and docebo or has any ideas for a close button in html5?

    This topic has been closed for replies.

    1 reply

    TLCMediaDesign
    Inspiring
    September 14, 2016

    I believe your issue is that that function exists multiple times in the HTML5 output with the last in the CPM.js which overrides the others.

    Try just executing your JavaScript in the JS window attached to your button:

    if(SCORM2004_objAPI){SCORM2004_CallTerminate();}

    if(SCORM_objAPI){SCORM_CallLMSFinish();}