FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » chat on web, Ajax ?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: chat on web, Ajax ? [message #177160 is a reply to message #177158] Fri, 24 February 2012 14:20 Go to previous messageGo to previous message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma:
Senior Member
On Feb 24, 2:15 pm, "sl@exabyte" <sb5...@hotmail.com> wrote:
>> I thought I have gathered all pieces I need, then suddenly I realise
>> there is still one problem.
>
>> I am implementing chat on the web, ie on a browse. On browser, I can
>> only use javascript. So the problem is what method to use to listen
>> for incoming data.
>
>> Ajax ? I am just wondering; Ajax does not seem to bother about port,
>> I mean the standard method is "open socket at server, port 8888...".
>
>> Of course, when data is sent to a php file on server, it must be port
>> 80.
>> Is this the only way on a browser ?
>
> After reading some material, it seems that a timer (for Ajax) is necessary
> to pool the server for messages.
>
> With java or C/C++, there is no timer, ie a client just listens on a socket,
> and it is notified once data is in. Correct me if I am wrong (ie the client
> does not pool the server in this case).

One has to ask, since there are so many already available free to
download, just why are you writing yet another one?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FastCGI & PHP
Next Topic: PHP socket and NAT
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 01:40:59 GMT 2024

Total time taken to generate the page: 0.04621 seconds