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

Including SCORM_utilities.js in HTML5 version of course

Guest
Nov 16, 2016 Nov 16, 2016

We are trying to change our courses over from Flash to HTML5, but we have run into a problem with a common Javascript method that we use on every slide.

We have added a method to the SCORM_utilities.js file which we use throughout the entire course.  The problem is that when we try to have everyone taking the course use the HTML5 version of it, the SCORM_utilities.js never gets loaded.  It does get loaded when we have our students take the Flash (Desktop) version of the course.

So I am wondering if there is somewhere to store this Javascript method so that it is always available to the student, no matter if they are taking if they are taking the Flash version of the course or the HTML5 version?

We are publishing our courses to SCORM2004 version 4.

I had read somewhere in this forum that I should include

<script src="SCORM_utilities.js"></script>

in: Adobe Captivate ????\HTML\index.html

Is this the best way to handle it, or is there a standardized *.js file or directory in Captivate which will always be included in the course whenever a course is published (both for HTML5 & Flash)?  That way we wouldn't have to customize the standard SCORM_utilities.js file that is built into Captivate.

Since I use this javascript method with every slide, I would have to load it as Javascript on every slide, and I already have an Advanced Action on the entry of a number of my slides already.

Any suggestions would be greatly appreciated.

I have both Captivate 8 and Captivate 9.

Thanks in advance.

Randy

TOPICS
Quizzing and LMS
997
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
Guest
Nov 17, 2016 Nov 17, 2016

I think that I should have posted this in the Advanced Adobe Captivate Users forum.  Would someone please move this posting to the Advanced Adobe Captivate Users forum for me?

Thanks

Randy

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 ,
Nov 17, 2016 Nov 17, 2016

If you put the include in the HTML5 template file:

C:\Program Files\Adobe\Adobe Captivate 8 x64\HTML\index.html

<script src="assets/js/SCORM_utilities.js"></script>

Then put the js file here:

C:\Program Files\Adobe\Adobe Captivate 8 x64\HTML\assets\js\

If the js folder is not there create it.

The file will be included every time you publish or preview using F11

I would remove everything in the SCORM_utilities.js except for your code. I would actually rename it to something else too.

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
Guest
Nov 17, 2016 Nov 17, 2016

Thank you for your quick response.  I have a couple of follow-up questions about your suggestion.

First, if I create a javascript file called bubba.js and put it in the C:\Program Files\Adobe\Adobe Captivate ? x64\HTML\assets\js\ directory, will bubba.js be pulled in for just the HTML5 version of the course or both HTML5 and Flash versions (I need it in both versions)?

<script src="assets/js/bubba.js"></script>   in C:\Program Files\Adobe\Adobe Captivate ? x64\HTML\index.html

Also, will this process work for both Captivate 8 and Captivate 9?

C:\Program Files\Adobe\Adobe Captivate 8 x64\HTML\assets\js\

C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\assets\js\

I believe the SCORM_utilities.js file is a common javascript (js) file used for SCORM courses and comes standard with Captivate.  We are publishing our courses as SCORM2004 version 4.   I just stuck my common js methods there because it was always being loaded when the Flash version of the course was used.  Now we want to convert over to the HTML5 version of the courses, but there will be at transitional period when we need to use both formats.

Thanks

Randy

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 ,
Nov 18, 2016 Nov 18, 2016
LATEST

To have the bubba.js loaded for the swf version also, you need to add the include in the following file:

C:\Program Files\Adobe\Adobe Captivate 8 x64\Templates\Publish\standard.htm

Your include would be the same as before:

<script src="assets/js/SCORM_utilities.js"></script>

Yes, it works the same for CP8 and CP9.

The  SCORM_utilities.js is used only for SWF files when published to SCORM.

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