Progress not working in Storyline 360
Jul 14, 2017
we have upgraded from storykine 2 to storyline 360, but the javascript code we use for tracking is working fine storyline 2 but not working in storyline 360.
Need help!
Here is our code:
var slideName="slide2"; //Change here
var slideNo="2"; //Change here
var totalSlideNo="2"; //Change here
var previousSlide=lmsAPI.GetBookmark();
if(previousSlide.length <1)
{
var txt= slideNo+","+totalSlideNo+","+slideName;
lmsAPI.SetBookmark( txt);
lmsAPI.SetProgressMeasure(slideNo/totalSlideNo);
}
else if(slideNo==totalSlideNo){
var array = previousSlide.split(',');
var index = array.indexOf(slideName) ;
var snoindex = array.indexOf(slideNo) ;
array[0]=totalSlideNo;
array[1]=totalSlideNo;
var prevString=array.toString();
if(index==-1)
{
var txt=prevString+","+slideName;
lmsAPI.SetBookmark( txt);
lmsAPI.SetProgressMeasure(array[0]/totalSlideNo);
}
}
else{
var array = previousSlide.split(',');
var index = array.indexOf(slideName) ;
var snoindex = array.indexOf(slideNo) ;
if(snoindex==-1)
{
var _num=Number(array[0])+1;
array[0]=_num.toString();
}
else
{
}
array[1]=totalSlideNo;
var prevString=array.toString();
if(index==-1)
{
var txt=prevString+","+slideName;
lmsAPI.SetBookmark( txt);
lmsAPI.SetProgressMeasure(array[0]/totalSlideNo);
}
}
Thanks in advance
1 Reply
Hi Abishek,
Thanks for reaching out here! I know that there have been a few reports of certain Javascript not working in Storyline 3 or 360 based on the changes we've made to the HTML5 output. I'd like to get our team to take a look at what you're experiencing - do you have the original SL2 file with the same code?
Can you upload it to our Support Engineers here?
This post was removed by the author
This post was removed by the author
This discussion is closed. You can start a new discussion or contact Articulate Support.