Click to See Complete Forum and Search --> : reload page when user clicks back button?


Jess2366
01-29-2003, 09:16 AM
I am developing a website that has 2 drop down menus on the homepage. The first allows the user to choose a state. After choosing a state, a second menu appears with options for that state. Once the user clicks on an option, he goes directly to that page.

Here is my question:

Say the user chooses California from the first menu and Farmers Markets from the second. He is now looking at a list of farmers markets in CA. After finishing with that page, he wants to go back to the homepage. Instead of clicking the Home link provided, he clicks tha Back button. Now we have problems. When the homepage is accessed through the Back button, the following happens in this case:

California will still be choosen in the first menu. But the second menu does not appear. The only way to get the CA options again is to click on a different state and then click on CA again. Do you follow me?

So, I would like to know if there is a way to refresh/reload a page when the user uses the Back button.

If the user clicks the Home links provided on all the lower level pages, all is well.

Any advice would be GREATLY appreciated. Thanks in advance.

Dan Drillich
01-29-2003, 09:50 AM
Please have a look at -
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=20&t=001710

Cheers,
Dan

jdavia
01-29-2003, 12:14 PM
No page was posted so I must make a guess.

What is happening is when you enter in the States menu and click, it takes you to the Options menu which is on another page. The back button only goes back one page at a time.
You can remedy this with either link below, but you will have to tell your visitors to use it instead of the back button.

<A href="
javascript:window.history.go(-2)">Back</A>

Or just make a link to the page with the "State menu"