There's a new feature on vkontakte.ru (I bet facebook has the same, not sure though). You browse pages while player keeps playing music at the background without interruption. How is this possible?
Asked
Active
Viewed 320 times
2
-
1Ajax or iframe - I can't look since I am not a member – mplungjan Apr 23 '11 at 20:36
-
@mplungian, you are right, it is ajax. The website is fully ajax-driven. It just never occurred to me. – Dziamid Apr 23 '11 at 20:40
2 Answers
0
The use Ajax (so they just load something else in the page but they don't reload it completely). Until not long ago, you could only change the hash (after the #) in the url but now, with the new history API, it is possible to change the whole url (with pushStates basically) : https://developer.mozilla.org/en/DOM/window.history

xavierm02
- 8,457
- 1
- 20
- 24