Why does javascript triggers runs only in Internet Explorer?

May 07, 2013

Hi, how can i make javascript triggers works on chrome and firefox?

Im using this code:

var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var dateString=month + "/" + day + "/" + year
var player = GetPlayer();

But the date is showed only in internet explorer or when i export to cd. Is that a limitation from the javascript functionality in articulate or am i doing something wrong?

1 Reply
Jake Perkins

I'm having the same issue.  The call "var player = GetPlayer()" is what is messing with the browsers.  Instead of getting the Javascript object, i'm getting a string back "embed#player".  

Both calls to the player in Chrome or Firefox fail.  I wonder if this is a known bug?

function GetPlayer()
var player = null;
if (IE)
player = document.getElementById("player");
player = document.getElementById("eplayer");
return player;

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