How to make Facebook like Ajax content loading?

How to make Facebook like Ajax content loading?

Hi,

I want to make a content loading via AJAX like Facebook. Let me explain,

Navigate one of your friend's profile, and then click to Info when you are on his/her profile page, you will see something like in the address bar:
http://www.facebook.com/home.php#/profile.php?id=123456789&v=info&viewas=111222333&ref=nf

" #/profile.php?id=123456789&v=info&viewas=111222333&ref=nf "
When you try to navigate to
http://facebook.com/profile.php?id=123456789&v=info&viewas=111222333&ref=nf

It displays all other content, but when they do that by AJAX, it displays only the necessary info.

The only way I thought is to send POST request to related page when doing AJAX. Then in the page, check if request is POST, if it is, just display the necessary info, but if request is GET then display everything with necessary info.

Is there any other way and better way to do this (ofcourse with back button support) ? Hope I could tell you my problem.

Thanks,
Onur A.