I think you should have a ajax submit on change of the form fields and only accept changes server side before the time expires. You do not need a timer. You only need to calculate the time difference between begin and last ajax submission.
if the server does not accept an ajax submit because time expires you can trigger a redirect on the client to notify the user. rote: > I am creating an application which can simulate on-line examination > (similar to GRE). The problem that I am encountering is how to time > out a test , say after, t minutes . The issues involved are:- > > 1) The script needs to check the time and should trigger automatic > form self submission after t minutes . > 2) The script need not be executed at all if the user has already > submitted the form before the time-out . > 3) I have to maintain the clock on the server side and not the > client . > > Can you please guide me as how to go about it ? > > Thanks in advance , --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

