Hi,
I have a page with a form. This form has an input field <textarea>. I
use it to have my users enter text and on form submit it gets inserted
into a db.
Initially there is some standard text shown in the <textarea> ("please
type comments here"). The user types some text, _doesn't_ do a submit,
continues to work. Only when he's finished working, he does a submit.
It's a time-tracking system so it also keeps track of start and
endtimes. Thats why.
So far so good.
Now every 20 minutes I do a refresh of the page (meta tag http refresh
etc). What happens: the text the user typed in gets replaced with
custom text! (remember, he didn't do a submit yet so there's no text
from the db to show). Now I wonder:
Can I somehow save the text user typed in the textarea? - maybe
onBlur=""
Can I save this text then somewhere locally? - Maybe in a hidden field?
Can I have the <textarea> show the contens of this hidden field? - this
would be either the standard text or - if user typed something - the
typed text.
How do I do this?
Thanks!