Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    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
    Ajax is JavaScript! Not sure what is different.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    Senior Coder
    Join Date
    Nov 2006
    Posts
    1,000
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Regular Coder
    Join Date
    Jul 2005
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #5
    Senior Coder
    Join Date
    Nov 2006
    Posts
    1,000
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •