View Full Version : A problem with my review quiz
asiatrek
12-06-2002, 05:09 AM
Hi there
I am using HotPotatoes to create my review
quizzes.
The students already have all of the answers.
I use HotPotatoes to generate the html pages.
I want to find out who was online when.
I already have a log-on script.
The students will finish the quiz and I want
them to have 100% score before moving on
to the next review quiz.
I have been searching alot of javascript
scripts sites for something to help
me to check whether they have finished
and then move on.
Hotpotatoes will score the quiz.
I can easily insert javascript code
into my quiz but I do not know where
I can find a script that will use the score
from the Hotpotatoes page to help
me determine whether to let the students
continue or repeat the current quiz.
Any feedback is greatly appreciated!
Hi asiatrek:
Welcome to the forum. Please note that this is not the HotPotatoes support forum. Not many of us probably even know what the program is, let alone its inner workings.
When it comes to a specific program, our best advise is simply to try and contact the creator themselves. This forum can only accommodate generic, coding related questions.
asiatrek
12-06-2002, 06:45 AM
Well back to the drawing board
for my communicative skills.....
I probably should included this sentence....
I am using Hotpotatoes to generate the html code....then I will open this <filename>.htm
in another web editor to insert other tags
or scripts.
I was not looking for advice on how to use the HotPotatoes program.....
Therefore all I need to do is find
some javascript script that will allow me
to determine whether the student
can proceed to the next unit or repeat
the same quiz....
The quiz is scored.
I need a script that will take this result
and then re-direct the user to a new
page or repeat the same quiz.
Is this more clear? (grin)
my mistake not yours.......
whammy
12-07-2002, 12:33 AM
You might want to post the relevant HTML for your quiz, I'm sure we'll be able to help you with the validation. :D
RadarBob
12-07-2002, 01:45 AM
herefore all I need to do is find some javascript script that will allow me to determine whether the student can proceed to the next unit or repeat the same quiz....
Sounds like your expecting to find a generic script out there. I don't know about that. It all depends on how you constructed your test. Radio buttons are handled differently from text boxes for example.
If you can refernece your questions as an array, then have a matching array of correct answers all you have to do is loop through the arrays using the same subscript and compare. Add up correct responses and compare that to a minimum passing score. All this would happen by pressing a SUBMIT button which calls the next page. If they pass, just return "true" and off they go. Otherwise return "false" and they're kept on this page. You can put up a dialog box in this case telling the student how (s)he did.
whammy
12-07-2002, 01:47 AM
Heh... like I said, post the code - this kind of validation is most likely "quiz-specific". ;)
We can't tell without seeing what you're already doing, though. If you're interested in a good javascript tutorial (especially regarding form validation), check out:
http://www.webmonkey.com/authoring
and do a search for "Thau's Javascript Tutorial". That should give you everything you need to know, and a lot more. If you want code-specific answers, we'll need to see the code in order to help you. :D
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.