Link to home
Start Free TrialLog in
Avatar of nouman2000
nouman2000

asked on

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
Avatar of VirusMinus
VirusMinus
Flag of Australia image

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
and there is no difference between history.back() and history.go(-1)
Avatar of nouman2000
nouman2000

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of VirusMinus
VirusMinus
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yea, I agree its safer.
Thanks
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 -> https://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 -> https://www.experts-exchange.com/Community_Support/

Regards
-VM
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
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.

https://www.experts-exchange.com/questions/21197916/grade-change.html

Cheers
-VM