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 7 of 7
  1. #1
    Dji
    Dji is offline
    New to the CF scene
    Join Date
    Dec 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Making quiz with JavaScript!

    Hi! I need to make my own web page with quiz on it! Something like this
    http://www.javascriptkit.com/script/popquiz.htm

    The main problem - how to calculate scores? I need to make, for example, pop up box that shows, how many answers are right/wrong. What should I use for that?

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Despite the similar sounding names, Java is not the same as Javascript.
    Moving from Java forum to Javascript forum.

  • #3
    New Coder
    Join Date
    Dec 2011
    Location
    Earth if you want to know
    Posts
    27
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Dji View Post
    Hi! I need to make my own web page with quiz on it! Something like this
    http://www.javascriptkit.com/script/popquiz.htm

    The main problem - how to calculate scores? I need to make, for example, pop up box that shows, how many answers are right/wrong. What should I use for that?
    Hi there,

    If you need codes to calculate scores, at least tell us how you want the score to be calculated.

    Tim_

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,310
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    Try using the search feature of this forum. You will find several quizzes.

    Example:- http://www.codingforums.com/showthread.php?t=237487

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • Users who have thanked Philip M for this post:

    Dji (12-17-2011)

  • #5
    Dji
    Dji is offline
    New to the CF scene
    Join Date
    Dec 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    Try using the search feature of this forum. You will find several quizzes.

    Example:- http://www.codingforums.com/showthread.php?t=237487

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
    Thank you for advice, but I have read so many topics and they doesn't seem to help. Usually there are codes without explanations. Can someone just explain me what should I use/make/write there?

  • #6
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,310
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    Quote Originally Posted by Dji View Post
    Thank you for advice, but I have read so many topics and they doesn't seem to help. Usually there are codes without explanations. Can someone just explain me what should I use/make/write there?
    I think that the best advice would be to learn Javascript (which is a totally different language to Java). Then you would be able to understand the code, and adapt the many examples to your specific needs.

    What is wrong with the javascriptkit example you quoted?
    Last edited by Philip M; 12-17-2011 at 04:34 PM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #7
    Dji
    Dji is offline
    New to the CF scene
    Join Date
    Dec 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    I think that the best advice would be to learn Javascript (which is a totally different language to Java). Then you would be able to understand the code, and adapt the many examples to your specific needs.

    What is wrong with the javascriptkit example you quoted?
    Yes I know and i would love to learn how to use JavaScript, but I need that quiz at the beginning of next week, so I don't think that I could acquire it all so quickly.
    About my example - yes, i can try to change questions and answers, but I guess there is no point doing that, if I don't understand the whole process.


  •  

    Posting Permissions

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