Jump to content

Can I Write My Own Chatbox In Javascript/ajax?


MrFish

Recommended Posts

I'm not sure if what chat boxes are written in. I could make my own chatbox if it was something like javascript/ajax, but I'm not going to get into things like java (I've got a class when school starts). What do they use to make chat boxes? If it's javascript, do I need to use ajax to get the information every second? Could this bog down the computers performance?

Link to comment
Share on other sites

Most of them use ajax. If you're going to do that, have it send a request for updates no more frequent than once every 2 seconds. Once every 5 or 10 seconds would be better. If it's lower than 2 seconds you run the risk of stalling the browser if the requests take longer than 2 seconds to come back.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...