Skip to main content
Known Participant
October 23, 2015
Answered

how can close the module If there's an error message of LMS ?

  • October 23, 2015
  • 1 reply
  • 383 views

Hello,

how can close the module If there's an error message of LMS ?

When there's à message error with LMS, and when the user click in thé button "OK" the module is closed

This topic has been closed for replies.
Correct answer TLCMediaDesign

Find the function in the scormdriver.js and edit as follows in bold:

function DisplayError(strMessage) {

    var blnShowDebug;

    WriteToDebug("In DisplayError, strMessage=" + strMessage);

    blnShowDebug = confirm("An error has occured:\n\n" + strMessage + "\n\nPress 'OK' to view debug information to send to technical support.");

    if (blnShowDebug) {

        DoCPExit();

  //ShowDebugWindow();

    }

}

1 reply

TLCMediaDesign
Inspiring
October 23, 2015

Are you sure that the LMS supports the SCORM version you are using?

I've never had a problem with the API not being found as the discovery routine searches in the window parents and openers.

aDebibiAuthor
Known Participant
October 23, 2015

My problem isn't with the specific error I'm getting. What i'm trying to is in case of any error appearing, when the user clicks "OK", I would like to force the module to close. How could I do that ?

TLCMediaDesign
TLCMediaDesignCorrect answer
Inspiring
October 24, 2015

Find the function in the scormdriver.js and edit as follows in bold:

function DisplayError(strMessage) {

    var blnShowDebug;

    WriteToDebug("In DisplayError, strMessage=" + strMessage);

    blnShowDebug = confirm("An error has occured:\n\n" + strMessage + "\n\nPress 'OK' to view debug information to send to technical support.");

    if (blnShowDebug) {

        DoCPExit();

  //ShowDebugWindow();

    }

}