Javascript not working on the LMS

May 24, 2022

Hello, I have integrated Javascript into my storyline (and one line into "story.html). It works when I open it locally (once it's been scormed and I click on story.html).

However, IT DOES NOT WORK ON THE LMS, I screenshot the console window in IE browser (it does not work on any browser).

Is someone there having the same issue ? How did you fix it ?

9 Replies
Luciana Piazza

Hello Ayse, and welcome to E-Learning Heroes. :blush:

I appreciate you sharing the details of what you are experiencing with your published file. While I cannot provide JavaScript help, I did upload the .zip file to SCORM Cloud so we could determine if there was an issue with the file or with your LMS.

Here’s a link to the published output on SCORM Cloud if you would like to take a look.

My image looks different than yours, which indicates it’s working in SCORM Cloud, so I’d recommend following up with your LMS Team.

Luciana Piazza

Hello Pooja!

Thanks for letting us know that you’re running into a similar issue.

If you’re experiencing an issue in your LMS, please upload your .story file to SCORM Cloud to see if you are able to replicate the issue.

If you are unable to replicate the issue, please follow up with your LMS team. If you are able to replicate the issue, please share your .story project file so we can investigate what’s happening. You can share it publicly here or privately with our support engineers. It will be deleted when troubleshooting is complete.

Ayse Sahin

IT WOOOOORKS !!!! Thank you Russell !!

For the ones who need help, you just have to add the jquery in the "story.html" before the </head> (around line 14) and "index.lms.html" before the </head> too (around line 16).

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
Math Notermans

Instead of pasting code into published HTML you can inject it into the HTML directly from Storyline using WebObjects to add the needed HTML. This way you never have to watch whether you use story.html ( for Web publishing ) or index_lms.html ( for Scormbased LMS publishing ). Storyline on publish automatically picks the correct file with this approach.