Event listener not working with Prime

New Here ,
Oct 03, 2016

Copy link to clipboard

Copied

I'm using a simple JavaScript to capture button clicks for processing.  This script works fine when uploaded to SCORM Cloud but fails silently on Prime.  Any ideas?

window.cpAPIEventEmitter.addEventListener("CPAPI_INTERACTIVEITEMSUBMIT",function ( e ){

var clickedButton= e.Data.itemname;

window.cpAPIInterface.setVariableValue("clickItem",clickedButton);

});

I place this script in the actions of the master slide, then add a a few Smart Objects as buttons and a text caption to display the variable.  ON SCORM Cloud the text caption changes to the identifier of the clicked object.  In Prime it does nothing.

I dont see how to attach a sample file here but I can link one on request.

Views

197

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Employee ,
Oct 03, 2016

Copy link to clipboard

Copied

Hi Michael,

I have send you an private message.

Thanks

Deepak

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more