Skip to main content
Participant
December 3, 2015
Question

Captivate JS Common Interface Issues

  • December 3, 2015
  • 0 replies
  • 181 views

I am having some issues with the Adobe JS Common Interface, and was hoping for some help. Essentially what I'm trying to accomplish is passing a variable to that of the SWF content from the HTML content as described here: Common JS interface . Here are the steps I took:

1) In my published Captivate 8 HTML file (attached), I added the following to the <head> section:

<script>

var learner = "Bob Smith";

function setLearnerName(){

     window.cpAPIInterface.setVariableValue("learner_name", learner);

}

</script>

And

2) In the CPTX Captive File, I created a "Text Caption" object and added $$learner_name$$" into it. On the master slide, I added the JS function call "setLearnerName();" as screenshot shows.

That is it, but it will still not pass "Bob Smith" from the HTML file to that of the SWF content.

Any help is very much appreciated.

NOTE:::: I  got it resolved. The problem was that Publishing to your local desktop and not the server was the issue. Once pushed to my server, it worked like expected.:::::

This topic has been closed for replies.