This description is only a draft. We need to think this through before implementing it.
The goal here is to avoid sending answers for each question to the server. Instead we store the answers on the client using javascript and loads each question using ajax. Questions are evaluated using javascript and reports are filled in using javascript.
The report part might be tricky. It may well be that the cleanest thing is to send all answers as xml or something to the server after the last question, and the server returns the report. Generating the report on the server will be slow if the server have to evaluate each question.
Code-wise each question-type might have to include a javascript class or something holding all the logic needed to make this work. This might mean duplicating existing php logic using javascript. Not very clean.. Maybe we can implement the logic in php or some other language or construct and have the corresponding javascript code generated automatically?
Side note: Remember, it must be possible to theme the report without changing the javascript!
Comments
Comment #1
falcon commentedTo be clear, the goal is to make quiz faster and scale a lot better on "self tests". It should also be easier to use Quiz with web-cache(Varnish for instance)
Comment #2
falcon commentedComment #3
djdevinThis issue is being closed because it was filed against a version that is no longer supported. If the issue still persists in the latest version of Quiz, please open a new issue.