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

Quiz client-side auto-save

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.3, 3.4
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
    • Affected Branches:
      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

              • Assignee:
                Unassigned
                Reporter:
                timhunt Tim Hunt
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                10 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: