Need to create an alert message when LMSFinish = false; in scorm
up vote
0
down vote
favorite
Can anyone help me in how to generate an alert message when "LMSFinish = false" occurs in SCORM, currently I have published my course as "SCORM 1.2" package. I have tried with the below coding but nothing got reflected.
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;
}
In the above my script has been mentioned within ** **.
javascript articulate-storyline
New contributor
Janagiraman Mani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
Can anyone help me in how to generate an alert message when "LMSFinish = false" occurs in SCORM, currently I have published my course as "SCORM 1.2" package. I have tried with the below coding but nothing got reflected.
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;
}
In the above my script has been mentioned within ** **.
javascript articulate-storyline
New contributor
Janagiraman Mani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Can anyone help me in how to generate an alert message when "LMSFinish = false" occurs in SCORM, currently I have published my course as "SCORM 1.2" package. I have tried with the below coding but nothing got reflected.
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;
}
In the above my script has been mentioned within ** **.
javascript articulate-storyline
New contributor
Janagiraman Mani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Can anyone help me in how to generate an alert message when "LMSFinish = false" occurs in SCORM, currently I have published my course as "SCORM 1.2" package. I have tried with the below coding but nothing got reflected.
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;
}
In the above my script has been mentioned within ** **.
javascript articulate-storyline
javascript articulate-storyline
New contributor
Janagiraman Mani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Janagiraman Mani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 days ago


bummi
24.9k85288
24.9k85288
New contributor
Janagiraman Mani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 2 days ago


Janagiraman Mani
11
11
New contributor
Janagiraman Mani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Janagiraman Mani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Janagiraman Mani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Janagiraman Mani is a new contributor. Be nice, and check out our Code of Conduct.
Janagiraman Mani is a new contributor. Be nice, and check out our Code of Conduct.
Janagiraman Mani is a new contributor. Be nice, and check out our Code of Conduct.
Janagiraman Mani is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373791%2fneed-to-create-an-alert-message-when-lmsfinish-false-in-scorm%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown