Refreshing the LMS Launch Page

Oct 23, 2012

What is the best way to refresh the LMS launch page so that the Learner's current score is immediately displayed when the course is exited?

The script to refresh the parent window is: opener.document.location.reload(true);

I have two approaches that work, but each has flaws:

  1. Add a trigger to the quiz Result page that runs the script when the Timeline starts.Also add the same trigger to the first slide in case they bail out early. (We display an "Incomplete" on the launch page if they start the course but don't finish.) This requires two triggers — and gives them an "Incomplete" the moment they start, which doesn't seem quite fair.
  2. After publishing, edit the story.js file so that the reload command immediately follows CheckTinCanComplete(); in the DoOnClose(evt) function. This will work correctly no matter how the learner exits, but the story.js file gets overwritten each time the course is published, so the developer would have to remember to do it that final time before uploading to the LMS. Plus, I get nervous about having our instructors tinker with source code.

I'm going with #1 for now, but what I really need is a way to input a trigger that runs immediately before the learner exits the course, no matter how they choose to exit.

Be the first to reply

This discussion is closed. You can start a new discussion or contact Articulate Support.