Hi I am new to PHP and Javascript. I want to design a site that has chat rooms. I have observed some online chat rooms like facebook chat. It seems like instant chat to me when I send a message the other side immediately receives it. The only way that I could think of to program it is by using a ajax loop to repeatedly send request to server to check updates. I do not know if this is the technology they used or is there better way to do it? I think the same thing apply to hotmail, when new mail comes in it page updates immediately without refreshing. It almost like there is a listener that listen to update request from the server.
Please help.
Many Thanks.