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?

Last modified 10 years ago Last modified on 2009-05-22T06:07:51+09:00