simple chat

I developd a simple chat, browser relaod every X secconds and dsiplays messages saved on a database.

I have problm with some pcs/browsers sometime the page cant reloan and then chat is terminated, so I wonder if there is a better way to reaload and check for new messages, I see messenger.providesupport.com web chat uses somethings else, anyone has a recomendation here?

RIOSmxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wassa_rCommented:
The simplest way to do it is the way you did it. It shouldn't terminate the chat if you can't reach the server though, try building in some error checks so that it doesn't die if anything fails ( try / catch ).

You could also try something like "Comit", but that's a lot harder to use.
0
RIOSmxAuthor Commented:

Thanks WASSA , well, youre right, chat keeps going . What I meant is that that particular browser/user get a not found error on the chat window, so, it look like its terminated , if he reloads the page chat goes on. I just wat to avoid that. Whats Comit ?
0
wassa_rCommented:
If you use AJAX then you poll the server for information, if you use comit, the server will push the information to your server. This way you don't need to do requests every few seconds, as new data is automatically pushed to you.

Are you displaying the error yourself? You normally don't get a message if the page is not found.. Can you show me an example of your chat window?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

RIOSmxAuthor Commented:


sure thing...  take a look

http://r1os-techsupport.com/soporteenlinea/bbchat_login.php

i would like to learn about how to the thepush instead of the refresh, any pointer?
0
wassa_rCommented:
0
RIOSmxAuthor Commented:

what browser did you use to access the chat ?

Ill take a look at comet tnx !
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.