Incorrect line of code at Common JS for Captivate page
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
