This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes history.back() and form value dissapear Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "history.back() and form value dissapear" Watch "history.back() and form value dissapear" New topic
Author

history.back() and form value dissapear

Susilo Saja
Ranch Hand

Joined: May 27, 2003
Posts: 91
I have a html form which submit to the second page.
On the second page, there is a link history.back().
When I submit the first page , and click the history.back() link on the second page , the browser is back to the first page , the values of all the textfield on the form is blank , which I have filled before submission. But sometime it's still there. I am confuse why sometimes the value is blank and sometime it's not.
I need the values still there.
Fyi , I use ie6. And I set the "Check for newer version of stored page" setting to "Every visit to the page".
Susilo
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You always have a chance of loosing the information when you press the back button. Only way to know it will be there is to use cookies to store the information and fill in the form when the page is loaded....
Eric
Susilo Saja
Ranch Hand

Joined: May 27, 2003
Posts: 91
Thanks!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: history.back() and form value dissapear
 
Similar Threads
Form Bean - Session Scope
No blank screen
resetting form view values
Query in Action Form
passing objects from one jsp to another !!