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(); player.SetVar("SystemDate",dateString);
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?
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?
1 Reply
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?
This discussion is closed. You can start a new discussion or contact Articulate Support.