Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2008
    Location
    Blackpool, UK
    Posts
    176
    Thanks
    4
    Thanked 0 Times in 0 Posts

    NEW Project. Help in organising the structure and logistics of the project.

    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

  • #2
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Quote Originally Posted by winnard2008 View Post
    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.

  • #3
    Regular Coder
    Join Date
    Jul 2008
    Location
    Blackpool, UK
    Posts
    176
    Thanks
    4
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •