Selected object style changes lost when user hits BACK
Posted on 2007-04-03
I have a web application using ASP, with scripting in VbScript. The main page is a menu, with 3 frames, each filled with buttons. Essentially, the users chooses one button in frame 1, which leads to a group of buttons available in frame 2, then frame 3. Once a button is chosen in frame 3, a ASP form is submitted, which loads the document the user selected.
I am using the following script:
which successfully changes the style of the buttons that are selected.
Here is the question (I believe it may be a very simple question): After viewing the document, when I hit the browser 'back' button, I return to the menu page, however the buttons that were coloured to indicate they were the last selection are no longer marked. It doesn't look like the page has been loaded again.
The only event I am trapping is OnClick (to change the style of the selected button). I am not using any other events. I am setting a default style for the button when the button is created (using a script).
Any idea how to avoid this? I want the menu screen to style show the last selected buttons when the user is finished reading the document, and hits back.