Click to See Complete Forum and Search --> : is this possible?


arkaf
09-28-2003, 08:48 AM
Hello, I think I should state first that I know basically nothing of Java - that will hopefully excuse me if I'm asking for something that is impossible :)

I am a language instructor and I've been working on webpages that might help my kids learn in different and hopefully less boring ways.
SO far I have picture dictionaries, themes, stuff like that.
I can do html, but I also borrowed some java scripts to make forms and other things that can make the pages even more interactive.

But I wanted to go a bit further. I've been looking on how some store sites use java to keep track of items bought and how they add them up in the end, or how quizz sites keep the score, and I was wondering if there was a way of using that for my classes. Something were I could have them choose the correct answer and then keep track of the points at the end.

Is this possible without having to get into heavy programing stuff? And if so, can someone help me, even if it's only by pointing me to where I can learn that?
I'm sure I can start learning all this and maybe in a few months I will be close to have an idea of what to do, but I"m really thinking about having this ready sooner, so they can start using it this year and not 5 years from now - yeah, sometimes I am a slow learner :)

IN any case I apologize if this is not the right place to post this question and thank you for any help.
arkaf

Khalid Ali
09-28-2003, 09:33 AM
First of all Java is totally different from JavaScript...;)

Now to your question,it seems like you want to use cookies( I am guessing that a server side solution may not be a choice??)

to store the users choice and then process this stored info when required.

There are some limits in doing that

1. Browsers must have JavaScript( and cookies) enabled.

2. the data being stored should not excede more then 4k(NS has no problem with the size but IE does not store more then 4k).

I am sure you will find something relatively close to your question if you searched on google or post a specific question to get faster help.

arkaf
09-28-2003, 09:45 AM
thank you.
I do know that java and java script are different - don't know much past that though.

I as looking through some scripts and found a few that are for quizzes that keep score. But they keep score only while the person is on the page, will it be possible to somehow have the total score emailed or send somewhere?
That would do quite well, because I would be able to keep track of their scores and it would simplify everything I think.
I found a great script where not only it keeps the score of the answers of the quizz, but also prevents the user to "cheat" by going back to the same question and answer differently. Now I just needed to be able to send the score somewhere, could this be done by adding something to the script?
thanks again.

As for cookies, most of the time they will be using the computers in my classroom and I can enable them.
Data size doesn't need to be much, just the number of correct answers.

arkaf

Khalid Ali
09-28-2003, 09:55 AM
are you familiar with how cookies work in browsers ????

You can find several tutorial ,and here is a simple cookie script that prompts the users, name and stores it on their machine,which is retrieved again to display...

Let me know if that make any sense for you...if not then I'll try to explain a bit more,
now for your task in hand,here is the logic that may work

1.first page of quiz.
read cookie if the first page is already stored don't allow to be here
2.when user gives first answer
store it in cookie
3. second page read cookie and see if the first page has been answered
4.if it is then allow the second page load else take back to first page.
5. if not then repeat the steps 2, 3

And yes you can email the results to an email..

create form with hidden fields and populate those hidden fields by reading cookies,then use forms action="mailto:urEmail@email.com" attribute to email it you.

arkaf
09-28-2003, 11:07 AM
Hey I can do that ! :) :)
And yes I understand .... gee this will work!!! Exactly what I need!
Thank you so much for your help.
I really wanted to be able to keep track of their scores so I could give them some bonus when it's report card time.

I also found another great script for drag and drop graphics. This will be excellent so they can match pictures with words.
I'm so glad I came here today.

Once again thank you so much for your help, now I can get busy with those scripts. I might be able to have the pages ready for them sooner than what I thought :)

arkaf

Khalid Ali
09-28-2003, 11:31 AM
you are welcome,
glad to be of help..

:D