N
Niall
When I say 'last', I mean (eg.) the 100th item in a 100-item history
list, *not* the immediately previous one!
The problem is, the history.go() method only allows *relative* movement
through the history list. I need to go directly to the end -- an
*absolute* movement -- and there doesn't appear to be any way of
finding out the number of 'steps' that would require.
Ideally, what I would use would be something of the form:
history.go(history.length - history.mythic_current_position_attribute);
....but that attribute appears to be a product of my fevered
imagination, or at least isn't documented anywhere.
Can anyone help? The idea is that if anyone uses the drop-down 'go back
many items' control in their browser, the site immediately bumps them
forward to where they came from; currently I have this implemented as
history.go(+1) at the top of each page, but this can end up with a
chain of 10+ page requests, which is rather too easy to interrupt.
(Aside: why do I keep getting 'permission denied' errors when I try to
access history.current via Firefox?)
Thanks in advance,
Niall
list, *not* the immediately previous one!
The problem is, the history.go() method only allows *relative* movement
through the history list. I need to go directly to the end -- an
*absolute* movement -- and there doesn't appear to be any way of
finding out the number of 'steps' that would require.
Ideally, what I would use would be something of the form:
history.go(history.length - history.mythic_current_position_attribute);
....but that attribute appears to be a product of my fevered
imagination, or at least isn't documented anywhere.
Can anyone help? The idea is that if anyone uses the drop-down 'go back
many items' control in their browser, the site immediately bumps them
forward to where they came from; currently I have this implemented as
history.go(+1) at the top of each page, but this can end up with a
chain of 10+ page requests, which is rather too easy to interrupt.
(Aside: why do I keep getting 'permission denied' errors when I try to
access history.current via Firefox?)
Thanks in advance,
Niall