Helpful Information
 
 
Category: Ajax and Design
would an AJAX chat be better?

Would an ajax be better for my server then a php/javascript one? I currently run a php one and dynamically update my page with javascript, problem is, im on a shared server, if i get a couple people on chatting then my server dies with a cpu error saying ive occupied 20% of it..... I know ajax would look better...but would it improve performance? I dont know AJAX, but if it will improve performance i might as well learn it....if not it can wait :)


thanks.

Ajax is JavaScript! Not sure what is different.

Eric

It sounds like your chat IS ajax already (like Eric said). You have javascript dyamically asking the php server for new chat messages and displaying them without refreshing the whole page? That is ajax.

david_kw

how its set up now is my chats just in a iframe and i have a meta refresh refreshing the page every second,if theres a new msg i update the iframe using javascript so theres no flicker.

if thats AJAX the things we learn :) but to my understanding you use XML request...which prolly is another thing then again i know mostly php :)

I've never used it myself but I've seen people recommend

http://www.phpfreechat.net/

for adding ajax chat to their website.

david_kw










privacy (GDPR)