...

View Full Version : NEW Project. Help in organising the structure and logistics of the project.



winnard2008
03-22-2010, 05:44 PM
Hi Guys,

I have a project whereby I have to put together an mock online test / quiz, for students to use to practice before taking the actual test.

It needs to meet certain criteria. I am trying to organise the best way in which to do this project.

Here is the outline criteria.

1. Mulitple choice test, with some questions having more than one answer.

2. Questions pulled dynamically from database, some questions include images.

3. Allow user to "Flag" a question so that they can come back to it when they have finished the rest of the questions.

4. Bank of 500 questions but only 40 pulled each test at random.

5. Time of 45 mins to do the test.

6. Secure login with user information, to store the test results so that they can use it to look at stats of how well they have done previously etc.

7. A banner advert system to be put in place to provide localised advertisements based on the area of the country the user is, to provide services to help them after they have done the test.

Currently the test is is on a page which is 220kb and uses raw javascript to store the flagged questions so that the test can be marked at the end. No user login system is in place so users cannot see how the previously did. The page refreshes after each question and uses the javascript rather than sessions to store the results, flagged questions etc.


How would I go about this.

a. Would I use some AJAX to pull the info from the db to avoid page refreshes thus improving usability?
b. Would I use sessions to store the flagged questions if any?
c. What else would I store in the sessions?


Any help with this would be fantastic.


Cheers


Dan

MattF
03-22-2010, 05:57 PM
a. Would I use some AJAX to pull the info from the db to avoid page refreshes thus improving usability?

It only improves usability for those who have JS available or enabled. Stick with server side setups and use JS to enhance, if you feel the need.



b. Would I use sessions to store the flagged questions if any?


You should never rely on anything client side for something like that, so yes. Plus, again, what happens if no JS is available on the client? JS is for enhancement or prettifying only.




c. What else would I store in the sessions?

Any and all sensitive information. Just remember a simple checklist when it comes to secure information:

1) Do storage server side.

2) Do storage server side.

3) Do storage server side.

winnard2008
03-23-2010, 11:35 AM
Hi Matt,

Thanks for your help.

I will steer away from the AJAX and will scrap the javascript on the client side for flagging and revert to sessions for all the required criteria.

Thanks for your help.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum