All the in-browser chat rooms I have seen so far append messages into the html.
Questions: Is this the proper way to do browser based chat rooms? Will I run into any problems if I implement a browser based chat like this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, this is how to do chat rooms in html. There is no practical way to display more text without changing the html in some way.
The only problem you might want to watch out for is auto scrolling. The browser will not continue to scroll down to display the next new message (assuming you’re appending at the bottom) unless you code auto scrolling into the javascript, so you should probably do that.