How do i change my chat code to where it refresh’s as soon as somone sends a message?


I have this chat that refresh’s like every 5 seconds but it gets annoying. I was wondering if instead of it refreshing every 5 seconds if i could get it to refresh every time someone enters a message. If theres a way, please post the code for it, Thanks, The chat is coded with mostly Javascript. Please help, Thanks.

One Response to “How do i change my chat code to where it refresh’s as soon as somone sends a message?”

  • Germann A:

    The chat that is coded with [mostly] JavaScript has to have a way of communicating with server/other chat user. JavaScript CAN NOT do it by itself…
    What other technologies are you using?
    If it is HTML (on site chat room) then I would suggest AJAX or Java applets…

Leave a Reply