html - MCQ Quiz web-app via MySQL and JSPs -


i working on web application(jsp) conducting mcq(multiple choice questions) quizzes. questions stored in mysql database under 'qna' table. there 10 questions , subsequent choices in each. want create quiz timer per question , each question showing on fresh page (i.e, 1 question per page). don't want end creating 10 jsps' 10 questions (that's absurd!!). how manage access each question database , keep displaying them 1 one. (note: in 1 jsp). ton in advance.

simply use ajax here.

  1. create single page show question.
  2. fetch questions , option details once , show them 1 one, or can fetch them 1 one using ajax based on test id. can use display property of css show , hide them.
  3. once answered question call ajax code save , show next question.

kindly try approach , come code if face issue. more idea can checkout aptitude test sample here- www.technicalbaba.com/app/all-online-tests


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -