Very strange JavaScript problem

Oct 15, 2022

Hi,

This is weird! I have a script called app.js and have included it in story.html as such (see Storyline-File.PNG)

When I open the Storyline in my browser, I view source and see the JavaScript lines, I am able to click on the link and it does indeed bring up the app.js file.

However, none of my functions are recognised, this has always worked before! 
(see Browser.PNG)

Any ideas?

One thing to mention, I have not got a story_html5.html file (I think I opted not to use the new player - could that be it? - not sure how to turn it back on)

Thanks

6 Replies
Math Notermans

I tried to get the same error...because i know i seen it too. And managed to do so. Its basically a missing library. You think your libraries ( app.js and/or xapiwrapper.js ) are available, but they probably arenot. Maybe pointing to a wrong directory or some like that.
error
I added a jQuery call...and jQuery ofcourse not more available by default... thus getting the error as i miss jQuery.

Maybe your libraries depend on JQuery, or maybe the script is pointing to a wrong directory...or scope... anyway...the libraries are not found.