Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5009

Re: chat on web, Ajax ?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: chat on web, Ajax ?
Date Sun, 26 Feb 2012 04:54:52 +0100
Organization A noiseless patient Spider
Lines 30
Message-ID <4F49AD0C.80007@arnowelzel.de> (permalink)
References <ji853f$ooi$1@news.albasani.net>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-15
Content-Transfer-Encoding 7bit
Injection-Info mx04.eternal-september.org; posting-host="ly65diorMZCkE+3l1nGWog"; logging-data="6589"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19p5iSfqwdlzDvvRr91Hwz1+oJLENrkBqU="
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
In-Reply-To <ji853f$ooi$1@news.albasani.net>
Cancel-Lock sha1:dwViR9CnClXRMaD8AbeHzpegEu8=
Xref x330-a1.tempe.blueboxinc.net comp.lang.php:5009

Show key headers only | View raw


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

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

chat on web, Ajax ? "sl@exabyte" <sb5309@hotmail.com> - 2012-02-24 21:59 +0800
  Re: chat on web, Ajax ? "sl@exabyte" <sb5309@hotmail.com> - 2012-02-24 22:15 +0800
    Re: chat on web, Ajax ? Captain Paralytic <paul_lautman@yahoo.com> - 2012-02-24 06:20 -0800
      Re: chat on web, Ajax ? "SL" <sb5309@hotmail.com> - 2012-02-24 23:52 +0800
        Re: chat on web, Ajax ? The Natural Philosopher <tnp@invalid.invalid> - 2012-02-24 15:59 +0000
          Re: chat on web, Ajax ? "SL" <sb5309@hotmail.com> - 2012-02-25 00:23 +0800
            Re: chat on web, Ajax ? Doug Miller <doug_at_milmac_dot_com@example.com> - 2012-02-24 16:52 +0000
              Re: chat on web, Ajax ? "sl@exabyte" <sb5309@hotmail.com> - 2012-02-25 10:01 +0800
    Re: chat on web, Ajax ? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-02-24 16:22 +0100
  Re: chat on web, Ajax ? Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-02-24 15:28 +0100
    Re: chat on web, Ajax ? Tim Streater <timstreater@greenbee.net> - 2012-02-24 14:51 +0000
      Re: chat on web, Ajax ? The Natural Philosopher <tnp@invalid.invalid> - 2012-02-24 15:54 +0000
        Re: chat on web, Ajax ? Tim Streater <timstreater@greenbee.net> - 2012-02-24 19:02 +0000
          Re: chat on web, Ajax ? The Natural Philosopher <tnp@invalid.invalid> - 2012-02-24 21:06 +0000
            Re: chat on web, Ajax ? Tim Streater <timstreater@greenbee.net> - 2012-02-24 21:38 +0000
              Re: chat on web, Ajax ? The Natural Philosopher <tnp@invalid.invalid> - 2012-02-24 21:51 +0000
                Re: chat on web, Ajax ? Tim Streater <timstreater@greenbee.net> - 2012-02-24 22:26 +0000
                Re: chat on web, Ajax ? The Natural Philosopher <tnp@invalid.invalid> - 2012-02-25 13:15 +0000
                Re: chat on web, Ajax ? Tim Streater <timstreater@greenbee.net> - 2012-02-25 13:20 +0000
                Re: chat on web, Ajax ? The Natural Philosopher <tnp@invalid.invalid> - 2012-02-25 13:33 +0000
                Re: chat on web, Ajax ? Tim Streater <timstreater@greenbee.net> - 2012-02-25 13:42 +0000
    Re: chat on web, Ajax ? "SL" <sb5309@hotmail.com> - 2012-02-25 00:31 +0800
  Re: chat on web, Ajax ? The Natural Philosopher <tnp@invalid.invalid> - 2012-02-24 15:48 +0000
  Re: chat on web, Ajax ? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-24 17:27 +0100
  Re: chat on web, Ajax ? Jeff North <jnorthau@yahoo.com.au> - 2012-02-26 00:13 +1100
  Re: chat on web, Ajax ? Arno Welzel <usenet@arnowelzel.de> - 2012-02-26 04:54 +0100

csiph-web