wiki:ContentPackaging/Code_Snippets

When using SCOFunctions.js in combination with APIWrapper.js this function will add the learners name into the text:

{{{<SCRIPT language="javascript">

loadPage(); var studentName = "!"; var lmsStudentName = doLMSGetValue( "cmi.core.student_name" );

if ( lmsStudentName != "" ) {

studentName = " " + lmsStudentName + "!";

}

document.write(studentName); doContinue('completed');

</SCRIPT>}}}


CategoryScorm?