Are you updating the address bar when an Ajax request changes the
page, but then when you click the back button you are noticing that
the URL changes (after the hash symbol) but nothing else does?
-justin
Not necessarily, as long as your URL checking function is simple and
you don't check very frequently. Say, something like this:
var AnchorChecker = {
initialize: function(){
this.location = location.href;
this.interval = setInterval(function(){
if (this.location != location.href) this.anchorAltered();
}.bind(this), 500); // check every half second
},
anchorAltered: function(){
// the url has been altered
}
};
AnchorChecker.initialize();
^ 100% untested, beware
-justin
Yes I think I forgot the most important line, glad you got it working :)
-justin
Ajax.Responders.register({
onComplete: function()
{
new AnchorChecker();
}
});