Pushr is a proof of concept application demonstrating the usage of the History API in a way Twitter has implemented it.
git clone firstname.lastname@example.org:adammiribyan/pushr.git;
- Go to
Triggered whenever the
a.js-nav or the back button is clicked. Calls
Pushr.navigateUsingPushState() method which makes an AJAX GET request to the given url. That url could be the clicked link
href attribute or the previous page's url in case the back button was clicked.
Pushr.navigateUsingPushState()'s AJAX request is complete. Calls
Pushr.updatePage() method which updates the page content.
Triggered after the page is updated with the new content.
Don't fancy Coffeescript?
http://localhost:9292/assets/application.js after you
rackup the server. You might need to scroll down a little bit.