LMSFinish = false时需要创建警报消息;在scorm中

时间:2018-11-19 11:35:22

标签: javascript articulate-storyline

在SCORM中出现“ LMSFinish = false”时,谁能帮助我如何生成警报消息,当前我已将课程发布为“ SCORM 1.2”软件包。我尝试使用下面的代码,但没有得到反映。

function SCORM_CallLMSFinish(){

    var strResult;

    WriteToDebug("In SCORM_CallLMSFinish");

    SCORM_objAPI = SCORM_GrabAPI();

    WriteToDebug("Calling LMS Finish");

    strResult = SCORM_objAPI.LMSFinish("");

    strResult = strResult + "";

    WriteToDebug("strResult=" + strResult);

    if (strResult == SCORM_FALSE){
        **alert("An error occurred while closing");**
        WriteToDebug("Detected failed call to LMSFinish");

        SCORM_SetErrorInfo();

        WriteToDebug ("Error calling LMSFinish:");
        WriteToDebug ("              intSCORMError=" + intSCORMError);
        WriteToDebug ("              SCORMErrorString=" + strSCORMErrorString);
        WriteToDebug ("              Diagnostic=" + strSCORMErrorDiagnostic);

        return false;
    }

    WriteToDebug("Returning True");

    return true;
}

在上面,我的脚本已在** **中提及。

0 个答案:

没有答案