|
Posted by Roy A. on 01/14/07 01:11
Dave White skrev:
> Hello everyone,
>
> My first time posting to the group.
>
> I am using frames.
>
> I'm presently using html to develop lesson plans for ms Excel. I also
> give a short quiz at the end of each lesson.
>
> I would like my students to page back and forth beween the each quiz
> and related lesson to answer the quiz questions.
>
> Each time I page back to the quiz it reloads the quiz.htm file and
> blanks out the quiz answers.
>
> How can I page back and forth between two .htm files without blanking
> existing data in the formp.
That's a hard question to answer. Basical you have to collect the
answers. That you can do with a form element. These answers have to be
accessible next time you are visiting the same page. You could du that
by submitting the answers to the server, and let a script on the server
save these answers. Or you could save the answers in a cookie.
Each time you visit a page, a script would have to fill inn the form
with answers that is saved. I think this is of topic, so here is a
link:
http://www.acky.net/tutorials/javascripts/cookies
You may get a better answer by posting to a JavaScript (or server side
scripting) group.
I'm not sure, but I think you may have to include a
document.formname.submit() in the onclick attribute on the "back" and
"forth" links to ensure that the last entered value is collected, eg.:
<a href="back.htm" onclick="document.formname.action='back.htm';
document.formname.submit(); return false">back</a>.
Navigation:
[Reply to this message]
|