Skip navigation
Currently Being Moderated

Adobe Captivate 4 and Javascript

Jun 11, 2012 6:47 AM

Tags: #adobe #javascript #captivate #quiz #7 #slide #refresh

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

 
Replies
  • Currently Being Moderated
    Jun 12, 2012 7:03 AM   in reply to dggambal

    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...?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 12, 2012 11:51 AM   in reply to dggambal

    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points