cmi.core.lesson_locationSyntax: LMSGetValue("cmi.core.lesson_location"); or LMSSetValue("cmi.core.lesson_location","page1.html"); Responsibility: The LMS initially sets this to the empty string, but the SCO has the sole responsibility for defining, setting and using this value. Data: CMIString255 - A set of ASCII characters with a maximum length of 255 characters. Description: This corresponds to the SCO exit point passed to the LMS the last time the student visited this SCO. This provides a mechanism to let the student return to the SCO at the same place they left earlier. In other words, this element can identify the student's exit point and that point can be used by the SCO as an entry point the next time the student returns to this SCO. Write Example Javascript: The following JavaScript writes the current web page as the exit point just before sending the LMSFinish() Run-Time command to the LMS (see the beginner Run-Time lesson for a description of this command). In this example, it is assumed that the variable scoPage[i] is a string containing the path to the current SCO content web page.
Read Example Javascript: The following JavaScript reads the location of the last page saved in the above JavaScript and then replaces the current web page with that page, unless this is the first time into the SCO.
|
|