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
  • 700,868
  • 160
  • 1,392
  • 1,356
Web Worm
  • 2,080
  • 12
  • 40
  • 65

3 Answers3

3

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

Alex
  • 7,320
  • 1
  • 18
  • 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
  • 32,252
  • 24
  • 73
  • 79
0

The short answer is: via Ajax

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

PiotrK
  • 4,210
  • 6
  • 45
  • 65