Skip to main content
Participant
October 10, 2017
Question

Is it possible to detect if a course is restarted at a bookmarked location?

  • October 10, 2017
  • 2 replies
  • 182 views

Scenario: I need to determine if a user previously logged out of the LMS course and then logged back in. Obviously there is bookmark information saved by the LMS and passed back to Captivate as the course restarts. Are the bookmarking communications hidden from the course developer?

Any help will be greatly appreciated.

This topic has been closed for replies.

2 replies

TLCMediaDesign
Inspiring
October 11, 2017

You could easily do this with JavaScript by checking the captivate variable cpInfoLastVisitedSlide and comparing it to the current slide to see if it is 1 less.

You would need a counter to only execute the script once.

There is also a SCORM entry that designates whether this is the first time accessed or a subsequent attempt,

var entry = SCORM_CallLMSGetValue( 'cmi.core.entry' );

  if ( entry == 'ab-initio' )

{ //this is the first time

}

else

{

//been her before

}

What would you want to have happen if the course is re-accessed and jumped to a bookmarked location?

Matt_A1Author
Participant
October 11, 2017

Thanks for the replies!

I assumed that the variable would be stored in the suspend data sent to the LMS. My purpose for detecting this is to provide an accessibility dialog box on initial start of course and each re-entry into the course. The dialog gives screen reader users the option of disabling slide audio in favor of CC so there is no audio conflict between their accessibility software and course audio.

TLCMediaDesign
Inspiring
October 11, 2017

There are no SCORM variables stored in the suspend_data. That is a totally custom field.

If you are using SCORM 1.2 I would use the cmi.comments to store a true/false. When you asked the user the accessibility question, write the value to the comments.

You would then check the entry mode and if 'ab-initio', set your custom variable or mute the sound, or whatever you plan on doing.

var entry = SCORM_CallLMSGetValue( 'cmi.core.entry' );

if ( entry != 'ab-initio' )

{

var myComment= SCORM_CallLMSGetValue( 'cmi.comments' );

if (myComment=="true")

{

/// do something

}

else

{

//do something else

}

}

RodWard
Community Expert
Community Expert
October 11, 2017

Resume Data bookmarking is stored on the LMS database for that user.  In order to get hold of that information (as a developer) you would need to be querying the LMS database looking for Resume Data relevant to a given User ID for a given Course session.

Captivate is not going to do this for you by default.  It would require custom programming.

Why do you need this information?