using storyline variables outside of storyline

May 15, 2015

Hello,

I am able to pull the user's name from the module and use it in a HTML file.
The below code works if the file is in the same folder as the storyline file.

var player=window.opener.GetPlayer();
var learnerName=player.GetVar("learner");document.getElementById('learnerName').innerHTML= learnerName;

But I want to move the file outside of the module folder structure so it can be used by several modules. When I do this, the variables no longer show in the HTML file.

Can anyone help?

Thanks

Julie

1 Reply

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