Skip to main content
Participant
Aug 28, 2018 9:20 PM UTC
Question

Lost Internet Alert

We have learners losing Internet and still completing the course because it is preloaded. They think they are done only to have the LMS later tell them they aren't. Is there a way to alert the user when they lose internet connection? Or a way for a course to re-establish a connection to an LMS after Internet is restored? Or a way to keep the course from pre-loading? Thanks!

    This topic is closed to new replies. Start a new post to keep the conversation going.

    17 replies

    chrismay_at_delta6226261
    Inspiring
    Nov 9, 2018 3:25 PM UTC

    It is under Quiz Preferences > Advanced, there is a "Send Data On Every Slide" check box.

    Translate
    Known Participant
    Nov 9, 2018 4:38 PM UTC

    Hiya, thank you for coming back to me.  It was actually this code I was asking about. Can you tell me where I insert this please :-)

    var LMSInfo=0;

    try{

      LMSInfo = SCORM_CallLMSGetValue("cmi.core.student_id");

      if(LMSInfo==0 || LMSInfo=="" || LMSInfo===null){

         cpCmndGotoSlideAndResume=xx;

      }

    }catch(err){

      cpCmndGotoSlideAndResume=xx;

    }

    replace the xx in tcpCmndGotoSlideAndResume=xx; with the slide number you want to jump to, that will display a message about lost connectivity.

    Many thanks

    Janet

    Translate
    Known Participant
    Jan 28, 2019 12:14 PM UTC

    Hi all

    I am still struggling with this. I added the code above into my course on each slide in the advanced actions with Execute JavaScript, but when uploaded to the LMS, nothing happened.

    I have read on some other posts that querying the javascript doesn't work because the LMS has pre-loaded everything so asking for the username etc will always return even if the internet connection is lost.

    It is becoming a real issue with some clients, understandably, users think they have completed but there is no completion record.

    I'm not particularly technical when it comes to javascript etc so please be as basic as you can :-)

    I look forward to hearing from someone who can help me with this.

    Many thanks

    Janet

    Translate
    chrismay_at_delta6226261
    Inspiring
    Aug 29, 2018 4:51 PM UTC

    You might also try turning on the "send data on every slide." I dont know if Captivate has any built-in warning if it loses contact with the LMS.

    Translate
    Participant
    Aug 29, 2018 6:35 PM UTC

    We had already tried that. Unfortunately, Captivate doesn't automatically return any messages if the communication with the LMS is unsuccessful.

    Translate
    chrismay_at_delta6226261
    Inspiring
    Aug 29, 2018 3:41 PM UTC

    Here is some JS code:

    var LMSInfo=0;

    try{

      LMSInfo = SCORM_CallLMSGetValue("cmi.core.student_id");

      if(LMSInfo==0 || LMSInfo=="" || LMSInfo===null){

         cpCmndGotoSlideAndResume=xx;

      }

    }catch(err){

      cpCmndGotoSlideAndResume=xx;

    }

    replace the xx in tcpCmndGotoSlideAndResume=xx; with the slide number you want to jump to, that will display a message about lost connectivity.

    Translate
    Participant
    Aug 29, 2018 3:50 PM UTC

    Thank you so much! It looks like this could be what we need!

    Translate
    chrismay_at_delta6226261
    Inspiring
    Aug 29, 2018 3:17 PM UTC

    You could do this with some JS. Either query the LMS on every screen, and if you don't get a response, then direct the user to a slide saying the connection to the LMS was lost.

    Or you could query the LMS on the last screen, but, as a user, i'd not want to waste my time getting to the end only to find out i'll need to start over.

    Translate