Forum Discussion
AunaliseJohnson
6 years agoCommunity Member
2 way communication between content in an IFrame and Storyline
Hi there, I am new to Storyline and I have been having trouble changing/reading a variable that I created in storyline from an web object containing my content. Anyone have any suggestions? I just c...
Jürgen_Schoene_
3 years agoCommunity Member
very interesting method to combine several storyline courses
here is a small example how it could work
mother:
- create a variable for every daughter ("subCourse1" with default value false)
- set trigger on "variable changes" to do something (here show a layer)
daughter:
here little javascript script for the daugther (here on button click)
var player = parent.GetPlayer();
console.log( "Player", player );
player.SetVar( "subCourse1", true );
- Daughter: then publish to web and rename "story.html" to "index.html"
- Mother: import the web object
- if you publish, you can see the result (a complete copy of the daugther)
VERY IMPORTANT: If you change anything with the daughter, you have to delete the webobject (-> Mother) and reimport it - there is NO automatic update
- Mother: publish to review360
result:
https://360.articulate.com/review/content/22ca6822-b7d9-4753-8646-64c2230d736b/review
-> daughter: click the button -> sends to "result"
-> mother: receives the "result" -> overlay
and here the link to scorm cloud
use the browser console (-> F12) if there are problems with the javascript
in the last line you can see the result of
console.log( "Player", player );
if there errors - e.g. wrong "variable name: subCourse2" you get a message
Related Content
- 7 months ago
- 8 months ago
- 4 months ago
- 6 months ago