Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookie? 2

Status
Not open for further replies.

k4ghg

Technical User
Dec 25, 2001
191
US
I have written an javascript for testing/quizzing. The opening page has three tabs, with links to several quizzes per tab. I would like to remember the users name, their score on each quiz and be able to return to the correct tab when they finish their quiz. Would cookies be the way to go and does any one know of an example or tutorial that might help be complete my task. Thanks Ronnie
 
The best way to handle scoring tests in a web form is to use server-side scripting. Is that within the scope of your school assignment?

Lee
 
Thanks for your suggestion. maybe I should have give a little more details. I am creating a quiz / test for Ham Radio operators that I want to put on a CD and have the user take the quiz / test off-line. Thanks...
 
Then I'd say the best way to do that is with an executable program (maybe a Java application if you want it compatible with various operating systems). You could write their scores to the hard disk that way and then reference them later on if you wanted.

If you use a Microsoft programming language, make sure you include all the necessary associated files on the CD, too.

If you REALLY want to use a web page format, then you can use cookies if you're going to use more than one page. You can find all sorts of good Javascript cookie code in a Google search.

Lee
 
Using cookies when running files from the local filesystem can be problematic with some browsers.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.

Webflo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top