Click to See Complete Forum and Search --> : history.go
eguven
May 9th, 2002, 08:04 AM
history.go "http://local_host/dir1/InstPT1.asp")
this code takes me to the first history of the "htmInstructionPT1.asp" page. So the form which I was filled out in this page turns empty.
In addition I saw the last history page which includes the full form, in the history list. How can I reach the last history page?
goddess_spanky
May 9th, 2002, 10:32 AM
if you just want to go back one page to the form you just filled out, use window.history.go(-1) or however many steps you took forward from the form page (if you have two pages after the form, you would use -2)
The only problem with this is if the user clicks another link either outside your site or to a completely different option and then goes back manually - the page may or may not contain the data in the form still. In my experience, it usually depends on if the site was written in pure HTML or ASP. If the document is set to expire fairly quickly - chances are you will lose everything.
Hope that helps!
~goddess
goddess_spanky@hotmail.com
eguven
May 9th, 2002, 11:05 AM
The number is changing according to the situation.
And no I face this problem in my own forms not outside of the site. And if user goes back manually he/she can return filled forms without losing anything.
In this case the user have to click back button more than once and this number changes dynamically by the user's situation.
That's why I wanted to back him with one button. But I couldn't succeed.
Anyway thanks for the help.
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.