472,143 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

back button doesn't remember new value

I have an asp page that builds a calendar made up of images for each
day. When a user selects a day, javascript changes the day selected
and the next 2 days' images to a "booked" image. I place the day's
value into a hidden form variable, so that when the user bounces around
different months (same page), then comes back to the month with a date
selected, the page will remember the day and show the "booked" images
for the day already selected.

After the user comes back to the month where a day was selected and
decides to change the day, then move forward in the "booking" process,
but then presses the back button, the page remembers the previous day
selected.

When the back button is pressed, how can I code the page to view the
new day selected?

Jul 31 '06 #1
1 1749

rh*********@gmail.com wrote:
I have an asp page that builds a calendar made up of images for each
day. When a user selects a day, javascript changes the day selected
and the next 2 days' images to a "booked" image. I place the day's
value into a hidden form variable, so that when the user bounces around
different months (same page), then comes back to the month with a date
selected, the page will remember the day and show the "booked" images
for the day already selected.

After the user comes back to the month where a day was selected and
decides to change the day, then move forward in the "booking" process,
but then presses the back button, the page remembers the previous day
selected.

When the back button is pressed, how can I code the page to view the
new day selected?
The back button navigates to the page that is cached in the user's
history. Ensure the page isn't cached and use session variables
instead of hidden form fields.

http://www.aspfaq.com/show.asp?id=2022

--
Mike Brind

Aug 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Dot net work | last post: by
3 posts views Thread by Robert Megee | last post: by
6 posts views Thread by guoqi zheng | last post: by
7 posts views Thread by Sridhar | last post: by
1 post views Thread by confusedofphp | last post: by
8 posts views Thread by Harvey Schmidlapp | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.