Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does the github UI navigate directories without postbacks?

When navigating through my repo directories on github.com, I noticed that it uses cool javascript effects to switch between directory views without ever causing a postback, and yet the url changes nice and RESTfully: http://../tree/master/dir7 -> http://../tree/master/dir7/dir4.

Whenever I have to keep track of navigation with javascript, I've always had to resort to hash arguments in the address bar. http://...page#new-javascript-location

How do they do it?

like image 280
Yarin Avatar asked Mar 09 '11 17:03

Yarin


1 Answers

https://github.com/blog/760-the-tree-slider

like image 186
Manse Avatar answered Nov 20 '22 08:11

Manse