Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Captivate JS Common Interface Issues

New Here ,
Dec 03, 2015 Dec 03, 2015

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.:::::

171
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Help resources