Jump to content

Can I Write My Own Chatbox In Javascript/ajax?


MrFish
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...