safeToUnload - Methods - Items API

Items API Methods

safeToUnload()

Confirms whether or not all responses have been saved successfully.

You would want to use this method so that you can persist the session data and wait before the learner navigates away to the next page, for example.

This includes the status of any audio recordings or file uploads that are still in progress.

Examples

var isSafeToUnload = itemsApp.safeToUnload();
console.log(isSafeToUnload);

Arguments

None.

Return value

Type boolean

Related articles

  • The save() method, the method used to save the current assessment.
  • The submit() method, the method used to submit the current assessment.
Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.