Question

Trying to get a browser back/forward and reload going on ajax content, where the actions that load the content are not typical has links (e.g. not <a href='#foo.html'>, like you see in the http://benalman.com/code/projects/jquery-bbq/examples/fragment-basic/#kielbasa.html examples).

Been looking at various history libraries that all seem to implement based on the hashchange. e.g. Address : http://www.asual.com/jquery/address/, or History.js : https://github.com/browserstate/history.js - but I can't work out how to make these work if the hash ISN'T changing.

My content page is called "content.html" and it never gets a hash change. Any clue on how to implement a history / refresher that works in IE7+ where there's no has change?

Était-ce utile?

La solution

Do not quite understand what you need, but can this library will work just as you need: https://github.com/devote/HTML5-History-API

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top