I saw that JQuery has a function "Jquery.get()", which can refer to divs in other pages via the "#" sign. I tried adding that in my AJAX (non JQuery) code, but it doesn't make any difference.
So I was wondering, how does JQuery do it?
I looked through the source codes and couldn't find anything.

Also, while on the subject of AJAX, I was trying to think of a way to make a small chat app, that updates itself without having a timer running, whenever someone writes a new message. Is that possible?
(I'm assuming that would require the server to connect to all the users, but I'm not sure if that's possible when the page is loaded.

Thanks!