Jump to content

Chat Server


peter_sanders2

Recommended Posts

For those who have answered my previous question in this forum, this is a feature of the social network I am writing. I

have written a chat room in AJAX, and now I need help. I have it set to write the posted messages to the innerHTML

of a textarea. document.getElementByID('postedText').innerHTML = document.myForm.time.value =

ajaxRequest.responseText; where the response is the return from an SQL database on the chat server.

First, is my JS innerHTML sound?

Second, how do I make it update when anyone says anything, instead of when that user says something

(for instance, Bob says "hello." he sees that he said hello. Nancy does not. Nancy says "hello." She now sees that

Bob had said hello first, and Bob will not know she has said hello until he says something else. I don't like this. How

do I fix it?

Please and thank you.

Link to comment
Share on other sites

<p>Also, I have an ajax script to pull up their private messages and so that they can post and send messages, etc., and when I click on one of the radio buttons, it says "error on page" in the indicator on the bottom left of IE and Firefox. I think bottom right of Chrome. I assume in this case that it is either a JS error in the AJAX, or a PHP error in the page contingent thereof. I then manually checked the PHP page. That works flawlessly after debugging it, but an error is still returned. How can I ask it to returna more specific error, or better yet, where is the error?<br>

Please and thank you, again.</p>

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
×
×
  • Create New...