Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's small problem on how browsers respond, when we change the hash#parameter in the URL and hit ENTER in the sites where DOM is manipulated using AJAX depending on hash-value, like in this site. It doesn't get updated until we hit ENTER for second time in Chrome, reload in Firefox.

I also have a similar site that manipulates DOM depending on hash value. If you are on instamovi.com/#bourne with bourne movies listed...and you change it to instamovi.com/#bond and hit ENTER, there's no change in the DOM. You have to hit ENTER again, then the movie listing changes to Bond movies.

Similar thing happens here on starlogs.net/#repo1 to starlogs.net/#repo2

Any idea how to fix this?



Why not use the HTML5 history API? Why do people still use onhashchange? Better browser support?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: