Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-19-2007, 04:32 AM   PM User | #1
jeromepelletier
Regular Coder

 
Join Date: Jul 2005
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
jeromepelletier is an unknown quantity at this point
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.
jeromepelletier is offline   Reply With Quote
Old 03-19-2007, 04:47 AM   PM User | #2
A1ien51
Senior Coder

 
A1ien51's Avatar
 
Join Date: Jun 2002
Location: Between DC and Baltimore In a Cave
Posts: 2,717
Thanks: 1
Thanked 94 Times in 88 Posts
A1ien51 will become famous soon enough
Ajax is JavaScript! Not sure what is different.

Eric
__________________
Tech Author [Ajax In Action, JavaScript: Visual Blueprint]
A1ien51 is offline   Reply With Quote
Old 03-19-2007, 06:57 AM   PM User | #3
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
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
david_kw is offline   Reply With Quote
Old 03-19-2007, 12:08 PM   PM User | #4
jeromepelletier
Regular Coder

 
Join Date: Jul 2005
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
jeromepelletier is an unknown quantity at this point
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
jeromepelletier is offline   Reply With Quote
Old 03-19-2007, 06:02 PM   PM User | #5
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
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
david_kw is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:46 AM.


Advertisement
Log in to turn off these ads.