[Pro] back buttons and Show hide layer?

Hi All… I know how to make a back button, but when there are Show/hide layer buttons on the page (and the viewer has clicked on them) it can take take several clicks on the back button to finally “go back”.

This is obviously because the browser is treating each click on the Show/hide buttons as a separate page… even though its not.

Any way around this? The page in question is an information page accessible from many product pages and I want them to go back to the product page they were on… this is critical! (and I really dont want to open the info page in a new window)

I can t very well put a call out on the back button that says “click as many times as necessary” smile HELP


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you make a link to back that doesn’t use the history.go() method,
and that shows you the problem, then you can break out of this by
adding ?something at the end of that link URL. (You’ll have to use the
manual link method to add this attribute, called a querystring.)

You may not see this exact behavior in older browsers – the history
shouldn’t be updated by incremental (sub-page) changes like the ones
that happen in Show/Hide Layer. It may be the browser being helpful,
trying to catch state for the kinds of sites that use JavaScript to
make one page seem like 20.

Walter

On Apr 7, 2011, at 1:11 PM, Tychain wrote:

Hi All… I know how to make a back button, but when there are Show/
hide layer buttons on the page (and the viewer has clicked on them)
it can take take several clicks on the back button to finally “go
back”.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I dont follow you Walter… I am using the history.go(-1) method…

Where would I put put this ?something

I know how to add extended attributes but Im not sure this is what you are saying…

Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You can’t stop the behavior you’re seeing if you use history links instead of actual links. Obviously when you do this, you probably don’t want to label the link as “back”, since it’s not doing that any more. If you just make a normal link, that won’t show this behavior.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter… The problem is that the customer can come to this page from many locations so I cant put in a “regular” link… I wont know what page they came in from so I cant send 'em back.

Looks like “spawn new window” is my only choice : (


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options