Skip to main content
Inspiring
December 3, 2016
Question

Incorrect line of code at Common JS for Captivate page

  • December 3, 2016
  • 1 reply
  • 241 views

Hello,

In the documentation at Learn About the Common JS Interface for Adobe Captivate, there is a line of code that is worthless and probably shouldn't be included in the example.

Step 3 of "Using Geolocation" gives the following sample code.

window.cpAPIEventEmitter.CPAPI_SLIDEENTER;

window.cpAPIInterface.setVariableValue("cpInfoGeoLocation","BLR");

if (window.cpAPIInterface.getVariableValue("cpInfoGeoLocation")==="BLR") {

     cp.hide("ss1"); // hide object ss1    

    cp.show("ss2"); // show object ss2

}

That first line of code does nothing but return undefined. There is no property called CPAPI_SLIDEENTER on the emitter object.

Also, the second paragraph under Using Geolocation makes no sense:

For example, a learner in New York can view only US-centric materials in a course, whereas another learner can view only US-centric materials of the same course.

Or am I missing something here?

- Ryan

This topic has been closed for replies.

1 reply

Paul Wilson CTDP
Community Expert
Community Expert
December 3, 2016

Do you want this feedback to go to the Adobe eLearning team? Someone from Adobe might see this but this is a user forum, moderated by users. Perhaps you could submit something through the bug / feature request or email Captivatehelp@adobe.com

Paul Wilson, CTDP
Inspiring
December 6, 2016

Thanks.  I write them an email.