DarrylPalaub492
3 years agoCommunity Member
SL360: Javascript GetPlayer() function is not defined
Hi, Everyone.
How to get a variable value from the storyline 360 using external javascript with GetPlayer, SetVar, and GetVar, but it doesn't work. It always gives an error like this "Uncaught ReferenceError: GetPlayer is not defined" can someone help with this?
I'm trying to get a variable value from storyline to use in frame.js (html5\data\js\frame.js) which holds the strings for defaults texts on Storyline/SCORM. Basically, I'm trying to translate texts inside the frame.js based on the user's selected language from the storyline.
Example:
- A user open the course and selected the Tagalog language from the storyline.
- The user will submit the selected language.
- When the user closes the course and opens the course again this screen will be shown.
- But the texts on this screen will be translated based on the user's selected language in the storyline. For this one, the user selected the Tagalog language.
Please see attached files for reference.
Thank you so much!