Please let me know if anyone has ever successfully used Javascript within a Captivate 4 project.
I do not know Javascript, but inserted the code, "location.reload(true);" with the hopes to refresh the current page of a Captivate 4 project loaded in our LMS. When I did this, it seems to refresh the page as I need, but then it bounces backward one slide and when I click again it does the same thing.
Is there Javascript I can use to refresh the page and then have the project continue?
My project is such that when I run it in my LMS I get to the first question on a quiz slide, the letters A,B,C and D appear for my multiple choice answers, but the actual answers do not. If I refresh the page, the answers appear. I would like to have this page automatically refresh when it gets to this point, so the user will not have a need to do this or even be aware it has happened. Is this possible?
Thank you,
David Gambal
Do you have a Captivate-based playback bar in the project? What if you hit the 'repeat' button on that playback bar? Does that likewise refresh the page to show the questions?
If so, then I'd dig around to find the Captivate-specific function to activate that repeat button instead - a more native Captivate approach.
BUT you shouldn't have to do that. The questions should show!
Can you adjust the elements on the CP timeline to resolve the appearance issue in the first place? If they are, for instance, right up against the 0 mark, give them a .5 second to appear. Or try changing the fade-up properties...?
Hi David ![]()
To refresh the slide, java script is location.reload(true)
No commas, no fullstop
If you want to test the same, create a blank slide in Captivate project, In Slide Properties on slide exit >Execute Java Script >Browse > in Java script window type
location.reload(true)
Hope it helps ![]()
Thanks VJ ![]()
North America
Europe, Middle East and Africa
Asia Pacific