CP9 - How can I access external Javascript?
CP9
HTML5 output only
Hello,
I have never tried using external Javascript files, but I thought it was about time I at least understand them.
Unfortunately my attempts have failed and I need help please.
I have created a file name my_java.js and stored it in C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\assets\my_java.js
The my_java.js contains the code:
function my_fun(my_message) {
alert(my_message);
}
I edited the index.html file at C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\index.html
I have no idea where to put the reference to the my_java.js so I added it to this line:
var lJSFiles = [ 'assets/js/my_java.js','assets/js/jquery-1.11.3.min.js','assets/js/CPM.js','assets/playbar/playbarScript.js' ];
In Captivate I have made a button to Excecute Javascript and put in this text:
my_fun("hello");
I have saved and published the project and the my_java.js appears in the assets, and the index.html has the reference to it.
Unfortunately when I view the project it just shows a spinning circle and progresses no further.
I would really appreciate and help.
Thank you
Peter.

