PDA

View Full Version : bug when using 'back' button on browser?? - 1.5


steveh
16th of October 2004 (Sat), 09:49
I was having my wife 'beta' test my new 1.5 galleries and sure enough she got confused when using the back button took her back to the previous gallery but the gallery named in the gallery drop down stayed the same as the gallery visited just before clicking the back button.

In fact if you sequentially click through my galleries from the dropdown and then 'back button' your way to the beginning of your navigation, the gallery named in the dropdown is out of sequence by a factor of 1.

Navigation on any of the 'backed' pages is correct for the actual photo gallery displayed but seeing the incorrect gallery name in the dropdown list can be confusing. Anybody else noticed this? Visit the following link if you would like to see this behavior.

http://www.shstockphoto.com

Pekka
24th of October 2004 (Sun), 11:39
This is essentially a browser problem. As you see (if you view the html source code AFTER you backed up pages) the "selected" parameter in form option tag is correct - the browser does not consider this worth noting when using a cached page.

You can force this "correct" by adding line

header("Cache-Control: no-store, no-cache, must-revalidate");

after line

if ($viewall == "1") $titletext = ee_translate_A($translated["view_all_exhibitions_combined"]);

in list.php, but this has some side-effects like browser notification popups and perhaps empty pages. I'll code a better workaround as soon as one is found.