prcvcc
prcvcc

Reputation: 2230

pinterest sorcery

maybe it's some kind of default behavior that I'm ignoring, but at the moment I haven't the slightest idea of how once you click an element on the homepage of http://pinterest.com the url actually changes ie: http://pinterest.com/pin/60165344991931565/

At the same time the page is not changed! It just loads ajax content and injects the result inside the html.

I never saw a behavior such as this. I'm using latest Chrome.

Upvotes: 1

Views: 804

Answers (4)

devote
devote

Reputation: 627

Use https://github.com/devote/HTML5-History-API for older browser. For example, there is integrated this library: http://spb-piksel.ru/history/ a copy of the site http://html5demos.com/history but with the integration of the library. Check on older browsers too.

Upvotes: 1

Joel Lundberg
Joel Lundberg

Reputation: 916

Check out history.pushState, history.replaceState and popstate.

Upvotes: 1

dader
dader

Reputation: 1314

Three words : History API HTML5

And one link : http://html5demos.com/history

Upvotes: 5

Billy Moon
Billy Moon

Reputation: 58601

There is a project on github for this: http://pjax.heroku.com/

Upvotes: 1

Related Questions