Forum Discussion
BenJohnson-f90c
3 years agoCommunity Member
Send variables from web object
Hi,
I'm trying to send a variable from a web object to storyline to display that value on the screen. In my web object HTML page, I have this:
let testVar = "Hello World"
In my storyline f...
OwenHolt
3 years agoSuper Hero
Web objects may or may not be on the same domain and so this breaks cross domain security protocols. You could try to have the web object page send the value to local storage but something IN the web object page would have to trigger this. Maybe an On Load event to kick off the JavaScript needed to store values in local. <body onload="myFunction()">
Once that has occurred, you can have Storyline pick up the values from local storage and display them in a Storyline variable. Again, you would need some event to kick off this 2nd piece of JS coding.
While what you are attempting may seem like it should be a simple thing, it is not.