how can i controls #! in url suppose i have the following url
http://www.facebook.com/#!/video/video.php?v=1106030301789
now how facebook controls that #!
in url....
how can i controls #! in url suppose i have the following url
http://www.facebook.com/#!/video/video.php?v=1106030301789
now how facebook controls that #!
in url....
http://googlewebmastercentral.blogspot.com/2009/10/proposal-for-making-ajax-crawlable.html - this might explain a little about it :-)
Take a look at sammy.js
$.sammy(function() {
this.get('#/', function() {
$('#main').text('Welcome!');
});
});
Or route.js
route('#/Learn').bind(function(){
Alert('Alert1');
});
There's also a standards way to do it with the new popstate event in html5
The short answer is: via Ajax
Ajax allows main page to dynamically load content without need to refresh page