Web object does not refresh after transition to new slide
On slide #1 the user enters text into one field. Using JavaScript, the contents of that field updates a Google Docs spreadsheet. This works fine. On slide #2 I want to display the contents of the Google Docs spreadsheet. I have a web object on this slide, which is a web page. The code for displaying the Google Docs spreadsheet is in this web page.
The problem I am having is that when I jump from slide #1 to #2 the web object on slide#2 does not update with the text submitted in slide #1. If I refresh the (published) Storyline-generated web page in my browser and navigate to slide #2, the new entry is there.
I've tried adding code to refresh both the Storyline-generated web page as well as the "web object" web page, but no luck. Has anyone had luck refreshing a web object?
Thanks,
Jim
8 Replies
Hi Jim
I'm no techo at all but could it be the order of your triggers. Is the refresh webobject trigger on timeline end of slide 1 or another action and perhaps add it again to the start of the webobject slide.
Check that your When revisiting slide property are set to Reset to initial state.
Is there a trigger - other than a NEXT button - that I could set that would refresh the webobject in Storyline? I did a web search and didn't find any.
Thanks,
Jim
Matthew-
Would you mind expanding on your suggestion? After I navigate from slide #1 - where the user enters a phrase into the text entry field - to slide #2 where the webobject is, I don't revisit slide #1.
Thanks,
Jim
Hi Jim
I took this to mean you had the JS code to refresh so I was asking if you were adding a trigger in SL to execute JS - so my comment was about could you add that trigger to timeline end of Slide #1 and timeline start of Slide #2.
Sorry if I've misunderstood.
Right... so you just visit slide #2 once?
In that case, I'm not sure. Maybe have your web object hidden by default (if you can even use states on web objects?) and show it when the learner goes to slide #2?
I suspect the issue occurs because the web object is preloading before the learner reaches that slide.
Or have the web object on a slide at the end of the module and bring it to slide #2 via a lightbox?
(I'm just guessing here if you can't tell!)
Not a problem. Your suggestion encouraged me to review the project more closely, which is always a good idea.
Thanks Matthew. I'll try out your suggestions.
Jim