2

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....

BoltClock
  • 665,005
  • 155
  • 1,345
  • 1,328
Web Worm
  • 2,044
  • 12
  • 39
  • 64

3 Answers3

3

http://googlewebmastercentral.blogspot.com/2009/10/proposal-for-making-ajax-crawlable.html - this might explain a little about it :-)

Alex
  • 7,244
  • 1
  • 17
  • 31
1

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

meleyal
  • 30,494
  • 24
  • 69
  • 77
0

The short answer is: via Ajax

Ajax allows main page to dynamically load content without need to refresh page

PiotrK
  • 4,038
  • 6
  • 42
  • 60