et wrote:
On Friday 07 February 2003 06:54 pm, Michael Adams wrote:

On Sat, 08 Feb 2003 10:03, Todd Slater wrote:

I need to develop a template for a self-correcting javascript quiz.

1. 3 radio button responses per question
2. on submit, validate that all questions have been answered
3. display correct/incorrect feedback in a textbox next to each question
4. display explanation in textarea next to each question

I found a snippet I could use to accomplish 2, but I don't have a clue
how to proceed on the rest (so far I just have variables set up, waiting
for something to process them).

If you can help I'd be much obliged. You can respond off-list.

Thanks,
Todd
I thought about offering suggestions as i have done some javascript myself.
I am likely to lead you astray as i have to test as i go to understand what
i am doing. You will need to learn as you go so have these instead.

http://www.programmersheaven.com/
http://directory.google.com/Top/Computers/Programming/Languages/JavaScript/
Tutorials/?tc=1
and why javascript? why not perl-cgi?
Both have their advantages, though my preference is for Perl - I find the syntax of javascript about as intuitive as quantum mechanics (not that Perl operators and regular expressions are immediately obvious either, but at least the syntax makes sense to anyone who's written a few shell scripts or programmed in just about any stndard language).

The advantage of javascript is that it can all be done client side - you don't need a CGI-enabled server. The advantage of Perl-cgi is that you can have all your date files (questions and answers in this case) in a separate file formatted how you like.

Co-incidentally, I've just been working on a Perl-CGI script for doing multiple choice quizzes - I can send you a copy if you like.

Sir Robin


--
" Like these cutters, and hackers, who will take the wall of men, and picke quarrells."
- G. Pettie

Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey

www.bilkent.edu.tr/~robin



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to