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 ("#class_name").click
with a var id = $(this).attr("id")
running with an Ajax.