Passing URL Parameters (using ServerVariables) into Storyline
Feb 22, 2017
I hope someone can help me with this. I'm trying to pass some URL parameters in Storyline. Which i got successfully working using this method: https://community.articulate.com/discussions/articulate-storyline/grab-variable-from-parent-url
But now, using that same method, i want to pull server variables by using the g_strFlashVars method using ASP (story.asp)
var g_strContentFolder = "story_content";
var g_bProjector = false;
var g_strSwfFile = "story.swf";
var g_nWidth = 980;
var g_nHeight = 658;
var g_strScale = "noscale"; // noscale | show all
var g_strBrowserSize = "default"; // default, fullscreen, optimal
var g_strBgColor = "#FFFFFF";
var g_strAlign = "middle";
var g_strQuality = "best";
var g_bCaptureRC = false;
var g_strFlashVars = "employeeID=12345";
var g_bScrollbars = true;
var g_strWMode = "window";
I have read about the use of FlashVars and usually would work something like this: (if using ASP)
var g_strFlashVars = "employeeID=<%=Request.ServerVariables("HTTP_EMPLOYEEID")>";
But I'm not sure, if what i have read about FlashVars works the same way in storyline? Does anyone have any ideas or how storyline uses FlashVars?
thanks!
3 Replies
The SL content may be HTML5 if viewed inside a modern browser. And note, SL supports Javascript, not ASP code once you have the URL arguments
Thanks Brian. Just realized i didn't ask the right question. So, let's step back and disregard the ASP part.
On the story.html file, you have the following variable, by default it's empty.
var g_strFlashVars = "";
but i wanted to add a value to it, like this.
var g_strFlashVars = "userID=1234";
now in SL, what is the correct Javascript to call or pass the value of the FlashVars into a SL variable? I hope this makes sense.
thanks
SetVar on the Player object via GetPlayer
This discussion is closed. You can start a new discussion or contact Articulate Support.