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 #177191 is a reply to message #177157] Sun, 26 February 2012 03:54 Go to previous message
Arno Welzel is currently offline  Arno Welzel
Messages: 317
Registered: October 2011
Karma:
Senior Member
sl@exabyte, 2012-02-24 14:59:

> Hi folks.
>
> 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.

There is no method. You have to poll every x seconds to check, if there
is new information available. Netscape and Mozilla implemented an
alternative way, but this is neither standard nor recommended to be used.

> 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...".

Did you try <https://blueimp.net/ajax/>?

> Of course, when data is sent to a php file on server, it must be port 80.

Only, if the server is configured to respond on port 80. A web server
can also use other ports.


--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
[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: Thu Nov 28 01:52:14 GMT 2024

Total time taken to generate the page: 0.04102 seconds