I'm trying to create a real-time chat on my website. One of the functions I want to imitate is how facebook.com/messages changes not only content of the webpage but also the url without refreshing. I think this is a lot cleaner more efficient.
My current process is just a
var id = $(this).attr("id")