messaging system php, ajax and mysql
Posted on 2014-07-15
i am developing a chat system using ajax, php and mysql.
I have gotten to the point where a user can hit post, the ajax is successfully submit, mysql will update and a response is given. everything works fine on that front. However, the ajax response will only update that users page ( the recipient of the message will have to refresh the page to see the new message). how is it possible to update the entire page so that both users see the new content. i have done some reading and it seems like im looking for long polling or html pushes. Im not very familiar with these so any information or suggestions is appreciated
thanks in advance