Setting a variable from the parent page

Jun 19, 2014

I am delivering a course by embedding the story.html file in an iframe on a protected page on my website. The user needs to log in to my website view the page and as such must have an identity. Id like to make some of their account details available in the course by setting a variable inside storyline to equal say [firstname] or [userid] which would be available as a value in a hidden field on the webpage.

Any ideas how I might get storyline to read these fields?


1 Reply
Andrew Gee

Hi Adam,

I am in no way an expert on this but have had success in sending variables from SL to a HTML doc.  As well as Javascript to extend Sl's capabilities.

I know you are essentially seeking the opposite in a sense and I can at least let you know what I have found whilst trying to extend SL's functionality.

There is this forum that details a lot about passing from SL to PHP but you may be able to employ a reverse in this case.

Also I found this site: which details getting and setting variables to and from from Flash.

Whilst not as directly helpful another link which does have a lot of Javascript information etc.  Also if you can get in touch with Steve Flowers on this forum, he is a gun at HTML, Java etc.

Sorry I can't give you a definite answer but am learning the software myself also in regards to extending its functionality and will be very interested to see if this can be done and how. 

Hope this at least gives you a start point and/or a solution.



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