Forum Discussion
Pass variable value from Rise web object with embedded interaction block to Storyline
This must be possible! :)
I'm not familiar with using JavaScript in Rise yet, but I've just used JavaScript in a web object in a Storyline course (ie code running in a custom html file) to take internal Storyline variables and use them in the web object, using this code:
var player2 = parent.GetPlayer();
var var1 = player2.GetVar("StorylineVar1");
(I used player2
instead of player
because I already have var player = GetPlayer();
in some JavaScript in Storyline.)
This code lets you take the Storyline variable, StorylineVar1
, and use it in the JavaScript in the web object as var1
.
I could have a tinker with some JavaScript in Rise, but I'm busy with some other stuff at the moment. I'll let you know if I get the chance to play around with it :)
[Edit - How do you have the Rise courses embedded in the SL360 module, and how do you have the SL interaction block embedded in the Rise courses?]