PDA

View Full Version : Navigation without showing hash



:YesMAN
28-08-2013, 08:48 AM
Hey guys,
so I've seen now that some websites are using the ajax navigation, but they load the pages without showing the "#!", so instead of having the url like "example.com/#!/home", it shows up like "example.com/home" but it still is an ajax navigation.
I believe that this is called pushState, but I don't really know how to switch from window.location.hash to that, so if anybody knows something about this or how to do it, please show me how can I do it!

Thank you!

Chippiewill
31-08-2013, 06:30 PM
It's called the history API, I'd suggest poking around the source code of http://html5demos.com/history/ and you'll get the idea.

Want to hide these adverts? Register an account for free!