Adding Cookies in Captivate


hi,

 

i downloaded captivate version 9 , new in using .

 

i have questions,

 

question 1:

i know if there setting in captivate if user refresh page on particular slide needs start leaves , not start. think thats saving cookies in captivate? found 1 article mentioned try , do  "project > table of contents > check show toc" not working me.

 

question 2:

while adding volume control widget, source coming not available , in output after publishing, there not audio controller loading in slide. idea?

 

 

please let me know on of both issues.

 

thank

gulshan

you can write cookies , toc write cookie if go settings portion of toc settings , choose self-paced learning. return beginning of slide.

 

you need set cookie, better use localstorage, when project closing in window. need add javascript , add listener window unload event , set localstorage current frame.

 

window.onbeforeunload = function(e) {

var lessonstorage = cp.model.data.project.pn + '.progressdata'

 

if ( typeof( storage ) !== 'undefined' )

{

  localstorage.setitem( lessonstorage, json.stringify( window.cpinfocurrentframe ) );

}

};

 

this code take name of project, must enter 1 in publish settings/project/information project name: field , write current frame localstorage before window closes.

 

then you'd need add module ready event , when fires jump frame.

 

window.addeventlistener( 'modulereadyevent', function ( e )

{

 

     var getresults = localstorage.getitem( lessonstorage );

                 

     var getprogress = json.parse( getresults );

     window.cpcmndgotoframeandresume = parseint(getprogress);

 

 

});

 

i didn't test if put in head of index page should work, might need tweaking.



More discussions in Adobe Captivate


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working