Preserving form data using history.back()

I have a form with several select menus., onSubmit to the next page, i want to confirm the selected what was entered on the previous page.
if the user decides to edit the data, i have a button which uses history.back() function.

Just on testing on IE, Data is preserved and in few computers with different versions of IE it isnt. I'm aware that we cannot rely on all browsers to remember values, however if it works in Netscape and IE i'll be more than happy.

whats the difference between history.back() and history.go(-1)? Could that be a factor?

Thanks
nouman2000Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

VirusMinusCommented:
These could help ->

http://www.msdn.microsoft.com/workshop/author/persistence/overview.asp

http://www.msdn.microsoft.com/workshop/author/persistence/howto/formdata.asp

Other alternatives are:

* use cookies on submit and read back
* use a server side language like ASP
* make sure all the data is collected correctly using Javasscript Validation and only then let users proceed
0
VirusMinusCommented:
and there is no difference between history.back() and history.go(-1)
0
nouman2000Author Commented:
I am using server side language "JSP"
I am currently using session to store values upon passing information from form. I can edit the form page to take values if session value has been set, I was wondering if there is a client-side alternative.

Just in order to save time perhaps.

All data is validated, and users are let to the next page, but they may change their mind and change values which require them to change their order
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

VirusMinusCommented:
I would use the session variables to refill the data. Safer and faster IMO.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nouman2000Author Commented:
Yea, I agree its safer.
Thanks
0
VirusMinusCommented:
Im glad you've found a solution Nouman.

Is there a particular reason for the C grade? A higher grade does not cost you more points.

Please refer to the EE help on grading fairly -> http://www.experts-exchange.com/help.jsp#hi73

=============================================================================
    *  A: The Expert(s) either provided you with a thorough answer or they provided you with a link to information that thoroughly answered your question. An "A" can also be given to any answer that you found informative or enlightening beyond the direct question that you asked.
    * B: The Expert(s) provided an acceptable solution, or a link to an acceptable solution, that you were able to use, although you may have needed a bit more information to complete the task.
    * C: Because Experts' reliability are often judged by their grading records, many Experts would like the opportunity to clarify if you have questions about their solutions. If you have given the Expert(s) ample time to respond to your clarification posts and you have responded to each of their posts providing requested information; or if the answers, after clarification, lack finality or do not completely address the issue presented, then a "C" grade is an option. You also have the option here of just asking Community Support to delete the question.
==============================================================================

One thing you shoud know is that Experts also study your previous grading history and looking at your's,  experts may be hesitant to give you 100% help in future.

You also need to understand that experts here are VOLUNTEERS who try their best to give you solutions on their OWN time. What keeps them going is the knowledge that their solution helped you and the acknowledgement of the quality of their answers (via a relevant grade).

Rest assured, I will try my best to answer your questions in the future but do not be suprised if you get similar feedback from other experts in the future...

If you would like to change the grade please post a 0 point question in Community Support stating the same -> http://www.experts-exchange.com/Community_Support/

Regards
-VM
0
nouman2000Author Commented:
Hey VM,
I dont remember having chosen grade C, I must have been in my sleep. Apologies, however I really dont remember giving a 'C' grade.

How can I change the grade for this question?

Thanks,
Noaman
0
VirusMinusCommented:
No problems Nouman. I have posted a question in Community Support. You can go here and post that you would like the grade changed. An admin or mod will come along and do the needful.

http://www.experts-exchange.com/Community_Support/Q_21197916.html

Cheers
-VM
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.