Back Button / history object
I have tried to resolve this issue many times over the past couple years. I never resolve it, then I get sidetracked....
I have a site with a lot of CGI on it. The problem is this. Many times I execute multiple cgi scripts before returning a "viewable" page (I may execute a couple of cgi submits before returning html). The result is that the back button does not allow the user to return to the prior "viewed" page. The back button will try to go back one step in the cgi sequence. Is there a way to either prevent logging a cgi submit to the history object or is there a way to edit the history object and remove / replace the contents??
If you wish to take a look at what I am talking about, I just finished some work for http://www.magnumtb.com
Try the product search module (access on the side bar).
Appreciate any suggestions.
PS: the controller of the company just complained about not being able to click "BACK" so I guess I need to come up w/ some solution.
Tazman
detox posted this at 01:16 — 13th May 2001.
They have: 571 posts
Joined: Feb 2001
you could hard code in you pages a back button, with a value of javascript:history.back(3) - or however many pages you need to go back to skip the cgi.
You cant code into the browsers back button, so you'll have to take steps with regards to that.
Suzanne posted this at 03:29 — 13th May 2001.
She has: 5,507 posts
Joined: Feb 2000
If you arrange it so the user's information is preserved, and your interface is logical and helpful, they won't need the browser back button. Detox's suggestion of creating a custom back button could be programmed specifically to carry the user's information back to various pieces of the program, ensuring no lost data and no upset customers.
Suzanne
tazman posted this at 04:34 — 13th May 2001.
They have: 99 posts
Joined: May 1999
I appreciate the feedback. I figured that I was S.O.L.
on being able to access/edit the history object.
I had heard that using the document.url.replace method prevents logging to the history object, but I could not find a method to utilize that with form posts to cgi.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.