Currently, I am developing a quiz portal where questions are organized in modules. Each module consists of 5 questions: the first 4 are text-based, and the 5th is an image-based question.
Upon registering through register.php, users are directed to index.php for logging in.
Once logged in, users encounter a start button. Clicking this button triggers the qstartfunc() function, which utilizes xmlHTTPrequest to access the qstart.php file. This file responds with an HTML-formatted question.
The response looks like this:
Response=<script>
setTimeout(qtime,30);
</script>
...
Although everything works correctly except for the behavior of the setTimeout method. This code section is supposed to create a time limit for answering the question before automatic submission occurs.
If anyone notices any issues or has constructive feedback, please don't hesitate to share your insight.
Thank you!
For access to the complete package, click on the following link:
https://drive.google.com/file/d/0B6KPYbSD1sxDU0k0QkU2YWVISWc/edit?usp=sharing