Re: Push technology in javascript
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Push technology in javascript

From: Ronaldo Junior <setembro@gmail.com>
Date: Mon Jan 30 2006 - 13:42:25 CET

> Javascript (though it can be used elsewhere) is essentially a
> web-technology used in session-based interactive operations. What that
> means is that it is basically a PULL system, rather than a PUSH one. To
> implement a push-based system, you would need the web page to call a
> server-side javascript that would then push the data to the web page and
> keep itself alive throughought the whole session.

I was thinking about an Ajax request, constantly receiving data
(triggered by readystatechange) and updating the table. If the
connection is interrupted, the readyState would be 4 (completed), so
giving the possibility to catch a possible connection error.

I haven't tested 'cause I don't know how to make a PUSH page, but
anyway, wouldn't it work?
Received on Tue Feb 7 21:27:17 2006