Forum Discussion
JavaScript Issue - Local vs. Global Scope in user.js
I use a Webobject to create a globals in the HTML. Inthere mostly functions...but these i can call from anywhere in Storyline. If you share a sample...im quite sure we will be able to set it up so your issue will be solved.
- JoshuaGarlick-43 years agoCommunity Member
Math,
Thank you so much for offering to help fix this issue!
I am very interested in hearing about how you use functions with WebObjects.
I've completely paired down the attached activity to just two slides. The first slide executes the JavaScript and the second slide contains the WebObject credit button.
I've also attached the index.html that the WebObject uses.
Please let me know if you need anything else.
Thanks again for your help!
Best,
-Josh
- JoshuaGarlick-43 years agoCommunity Member
Hi Math,
Sorry to bother you, I'm wondering if you've had a chance to look at the attached files? Thanks very much,
-Josh
- MathNotermans-93 years agoCommunity Member
Hi Joshua, No problem, i did and couldnot solve it ( yet ). Mainly due to other projects having priority :-(
I will try to send a sample of how to make things global soon.- JoshuaGarlick-43 years agoCommunity Member
Hi Math,
Sorry to bother you again! I'm wondering if you might be able to send that sample of creating global variables when you have the chance?
All the best,
-Josh