Possible Duplicate:
How to rewrite URL without refresh, like GitHub.com
Hi all,
I have a list of href links (but1 - but4) that I can click. The data is preloaded and stored as JSON. When I click a link, I would like to change the URL, eg fakeURL.com -> fakeURL.com/but1
I know this can be done by using the window.location.hash function, but I'd prefer to modify the url directly.
An example of this is github (https://github.com/apache/hadoop-common) where if you click on a folder in a repository, the url changes and the folder is loaded (via AJAX, so slightly different, but if I understood their solution I can modify to my case)
Any idea how to do this?
Thanks, djs22
EDIT: I'd prefer a solution more robust than html5 history.pushState .