In reply to N Hansen
Re: What happens if a session times out in the middle of a quiz?
由Gustav W Delius發表於
Their work will be lost unless they have saved it. Therefore please advise your students to save their results frequently while they are taken the quiz (this also protects them against browser crashes and other such accidents). Any responses that they have already saved, marked or not, will not be lost. If you have a longer quiz it may also help to split it over several pages because each time a student navigates to another page their responses will automatically be saved.
In reply to Gustav W Delius
Re: What happens if a session times out in the middle of a quiz?
由Roman Weinberger發表於
imo this would be a nice example where AJAX could be very beneficial - storing each answer as soon as it was given (onblur event or the like) in a temporary table
as i am not too familiar with moodles question type architekture - would this mean to replace every question type with its own version or just some standard controls library?
as i am not too familiar with moodles question type architekture - would this mean to replace every question type with its own version or just some standard controls library?
AJAX would indeed be very useful for this purpose. You would only need to change mod/quiz/attempt.php so that when saving results it does not submit the form via POST but using AJAX instead. Unfortunately I don't know any AJAX myself (I don't even know javascript properly).
thank you for the information so far
my first priority would be, not to use ajax to store quiz answers, but to somehow keep the session alive - like when a user clicks some form element, an ajax request is sent to the server saying 'the user is working - keep his session alive' - this should be easier to implement than ajaxify attempt.php
i will try to implement this idea in the next few days and post my results
my first priority would be, not to use ajax to store quiz answers, but to somehow keep the session alive - like when a user clicks some form element, an ajax request is sent to the server saying 'the user is working - keep his session alive' - this should be easier to implement than ajaxify attempt.php
i will try to implement this idea in the next few days and post my results