Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFCONTENT and refresh on back button

Status
Not open for further replies.

tanny

Programmer
Jan 28, 2001
15
AE
Hi,

I know I'm starting to sound like a broken record about this tag, but its intricacies are endless!

I'm using CFContent (with a cfheader as suggested) to grab an image file (that I want to keep safely hidden from the webserver) and then display it in my page.

This image is used as the image source for an image map. The links all work beautifully and I can drill down on image maps for as long as I like.

However, there is a problem when the user clicks the back button. The pages that they are looking at are generated via a cf script, and the image on the page they've clicked back to is the most recent image that has been grabbed by that script. So, if they were looking at the map of a country, and they click on a particular state we get taken to that state. If they click the back button on the browser, the window.location goes back to the map of the country, but the image itself remains as the state map. I have to click the refresh button to make the old (correct) image come back.

This sounds like a refresh-on-click-of-back-button problem, but I'm not sure that I've seen a way of actually doing this (that won't send the browser into an infinte refresh kind of loop).

So, I was wondering if there was something else I should be looking at?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top