Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-38537

Quiz client-side auto-save

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.3, 3.4
    • None
    • Quiz
    • MOODLE_24_STABLE, MOODLE_34_STABLE

    Description

      MDL-38538 implemented server-side auto-save for the quiz. That is very good, but only while you have a working connection to the server.

      It might be possible to sue the DOM Storage API (https://developer.mozilla.org/en-US/docs/DOM/Storage) to implement client-side auto-save in the quiz as well.

      We need new JavaScript code mod/quiz/yui/autosave/autosave.js, which notices any time the contents of any form field (or TinyMCE) inside the quiz responses form changes value, and then does a callback a few seconds later to save the values.

      Later, if the quiz page reloads, we check the DOM storage, and if there is data there different from the most recent value stored on the server, then we update the form fields with the saved data.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              timhunt Tim Hunt
              Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              12 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: