Forum Discussion
What am I doing wrong with local storage?
I would greatly appreciate if someone could look at my rationale and my JS for making this work?
From the attached SL file, I published the two scenes separately (to Review), one to send some variable data to local storage, and another to get that data.
I've done a bit of JS but not an expert. But I copied the necessary code I found online, scrupulously (or so I think!)
I put them as SL blocks into a Rise course: https://360.articulate.com/review/content/6020eaae-fa54-46ec-b57e-4b989bc453cb/review
I'm thinking that the data should pop into the second one. But it just doesn't work!
Thanks in advance for any advice
John.a.
1 Reply
- Nathan_HilliardCommunity Member
First, try correcting these errors and try again.
JS trigger #2 on first slide: Change 2 occurrences of player.Get.Var(...) to player.getVar(...)
JS trigger #1 on second slide: Missing second single quote at end of local_mindset_importance
When publishing in Storyline to test, Press F12 to see the developer panel and check the console window for error messages (e.g., syntax errors, not a valid script, etc.).
Related Content
- 12 months ago
- 2 years ago
- 7 months ago
- 21 days ago