?If you're looking for Comet-style interactions, another option is long
polling. It's not quite as nifty as HTTP streaming, but it also gets the job
done. I did this when I wrote the YUI EventSource component. Details here:
http://yuilibrary.com/gallery/show/eventsource
The source is fairly well-documented, so hopefully can be used as a good
example.
-Nicholas
_____________________________________________________
Nicholas C. Zakas
Twitter: @slicknet
Blog: http://www.nczonline.net/
-----Original Message-----
From: Arlo
Sent: Monday, January 10, 2011 9:39 PM
To: The JSMentors JavaScript Discussion Group
Subject: [JSMentors] Re: XHR.readyState == 3
That's great stuff thanks!
On Jan 10, 6:13 pm, Cesar Alvernaz <[email protected]> wrote:
Check
this:http://blogs.msdn.com/b/ieinternals/archive/2010/04/06/comet-streamin...
It's a comparative behavior between browsers and a clear explanation.
On Mon, Jan 10, 2011 at 10:44 PM, Arlo <[email protected]> wrote:
> I am trying to use readyState == 3, but it is apparently never fired.
> I only see 1 and 4 being fired. Is there some sort of requirement
> needed for state 3 to be fired (besides browser support)?
> --
> To view archived discussions from the original JSMentors Mailman list:
> http://www.mail-archive.com/[email protected]/
> To search via a non-Google archive, visit here:
>http://www.mail-archive.com/[email protected]/
> To unsubscribe from this group, send email to
> [email protected]<jsmentors%2bunsubscr...@googlegroups
> .com>
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]