I want to send to LMS a few variables. I know I can use this solution: http://www.articulate.com/support/kb_article.php?product=st1&id=7la24ugs1lcn
but I wonder why I can do this use Execute JS. When I call function for example SCORM_GetDataChunk() it doesn't work. I suppose I should use different level (parent etc) but I do'nt know how. Could you help me?
I want send a few variables to LMS and have it when I'm back to course. I know that suspend string is encrypted but I use to do this function of LMS WriteComments and it works
Next question. Do you know SL has a tutorial how can we use execute JS? I have seen only tutorial with using a date. I want to know how can i use JS to for example show slide layer in SL or jump to slide. I want to know function of Storyline player because in tutorial is shown ony function setVar.
To show a layer or jump to slide you would need to adjust a variable and add a listener on each slide, much easier to just add that functionality direct without using javascript.
The variable values are already stored in the resume data.
4 Replies
Hi Kamil -
Try lmsAPI.SCORM_GetDataChunk();
What information are you expecting to retrieve from GetDataChunk()?
I want send a few variables to LMS and have it when I'm back to course. I know that suspend string is encrypted but I use to do this function of LMS WriteComments and it works
Next question. Do you know SL has a tutorial how can we use execute JS? I have seen only tutorial with using a date. I want to know how can i use JS to for example show slide layer in SL or jump to slide. I want to know function of Storyline player because in tutorial is shown ony function setVar.
Only exposed are setVar and getVar.
To show a layer or jump to slide you would need to adjust a variable and add a listener on each slide, much easier to just add that functionality direct without using javascript.
The variable values are already stored in the resume data.
There's some info in this thread about using a variable and JavaScript to jump to a particular slide:
http://community.articulate.com/forums/p/25399/139870.aspx#139870
Essentially there are three components:
1) A variable in Storyline (preferably a numeric variable)
2) A JavaScript method to change the numeric variable
3) A trigger "listener" in Storyline that uses "When variable changes" as the event.
This discussion is closed. You can start a new discussion or contact Articulate Support.