Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Captivate 9 close button html5 docebo

New Here ,
Sep 14, 2016 Sep 14, 2016

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?

165
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 14, 2016 Sep 14, 2016
LATEST

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();}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources