I had created two variables, CourseTitle and CourseCode, and I wanted to access them from the report.html file so I added the following code within one of the tags. I choose the one that is just after the tags.
var player = window.opener.GetPlayer();
var course_title = player.GetVar("CourseTitle");
var course_code = player.GetVar("CourseCode");
What this does is grab the variables that you created and you can now use them to display. Example below.
document.write("
" + course_title + "
");
I hope this helps. I'm new to Articulate so I am still just learning.
1 Reply
As far as displaying goes I did the following.
I had created two variables, CourseTitle and CourseCode, and I wanted to access them from the report.html file so I added the following code within one of the tags. I choose the one that is just after the tags.
var player = window.opener.GetPlayer();
var course_title = player.GetVar("CourseTitle");
var course_code = player.GetVar("CourseCode");
document.write("
" + course_title + "
");I hope this helps. I'm new to Articulate so I am still just learning.
This discussion is closed. You can start a new discussion or contact Articulate Support.