CPAPI_SLIDEENTER in Captivate 2017
Hi,
I was currently using the event listener in index.html to send SCORM information for each slide change.
See piece of code (was given in a previous post)
************************
function initializeEventListeners()
{
if ( interfaceObj )
{
if ( eventEmitterObj )
{
eventEmitterObj.addEventListener( "CPAPI_SLIDEENTER", function( e )
{
if ( typeof progressArray[ window.cpInfoCurrentSlide - 1 ] === 'undefined' )
{
progressArray [ window.cpInfoCurrentSlide - 1 ] = 1;
var tempProgress = SCORM2004_CallSetValue("cmi.progress_measure", progressArray.length / window.cpInfoSlideCount );
parent.parent.postMessage(progressArray.length / window.cpInfoSlideCount,"*");
}
});
}
}
**********************************
I realized that the code has changed in the index.html file.
Do you have an idea how I can achieve this now?
Thanks!
