Replacing a history state

0 views
Skip to first unread message

dburkes

unread,
Nov 29, 2007, 2:38:35 PM11/29/07
to ReallySimpleHistory
Is there any way to replace a history state, rather than adding a new
one?

Best Regards,

Danny

bdpath...@gmail.com

unread,
Dec 11, 2007, 12:34:47 PM12/11/07
to ReallySimpleHistory
That's actually the default behavior of add(). If you call
add(newLocation,historyData) with a newLocation value that's
previoiusly been set, it will be updated with the new value of
historyData. Each time the user hits that hash state when using "back"
or "forward," the data recovered from historyData will be the NEW data
you've stowed there rather than the original data.

dburkes

unread,
Jan 31, 2008, 3:10:55 PM1/31/08
to ReallySimpleHistory
> That's actually the default behavior of add(). If you call
> add(newLocation,historyData) with a newLocation value that's
> previoiusly been set, it will be updated with the new value of
> historyData. Each time the user hits that hash state when using "back"
> or "forward," the data recovered from historyData will be the NEW data
> you've stowed there rather than the original data.
>

Sorry but that's not what I was asking. What I want to be able to do
is replace the current state with a different state- that is,
overwrite the current state, rather than appending to it.
dhtmlHistory.add pushes a new state (unless the state is the same, as
you mentioned above). I want a way to overwrite (or maybe pop then
push, as an equivalent operation).

Any ideas?

- D

dburkes

unread,
Feb 6, 2008, 12:35:54 PM2/6/08
to ReallySimpleHistory
Nobody??
Reply all
Reply to author
Forward
0 new messages