JavaScript not getting active, why?

Nov 11, 2013

Dear Heroes,

How are things? I hope they are all right. Now I am working on a new project using a JavaScript so that a selfmade platform, non-SCORM compliant, can track my slides and trigger a diploma afterwards.

I added a trigger to Execute Java script,  Aulapp.iniciar_tracking_pag(1); When Timeline starts, Object Portada, Frontcover. I tried those triggers using my browser but I have no response, the Java does not become active...I even tried setting the trigger with objects on the slide...Same outcome, nothing...Do you have any ideas on what I am doing wrong?

Regards, Ernesto.

7 Replies
Dennis Hall

Hi Ernesto:

You have not provided many details about what your JS file is doing, therefore, we can only help you by using examples as follows:

Example.js file might have the following code:

function getvar {do something and output a something to getvar}

You will need to include this .js file, or embed the function in script tags in your story html file.

In your story file, you will then need to call that function in the Javascript trigger.

Real-world examples can be found here: http://www.popular-networking.com/project/template/story.html

Best Regards,

Dennis Hall

This discussion is closed. You can start a new discussion or contact Articulate Support.