It is good news that long polling is portable and works with MochiKit.
I'm confused how you would make your server implement long polls for
MochiKit.
For example, how would you make TurboGears server do Comet long
polling?
Chris
On Mar 4, 7:29 am, Bob Ippolito [EMAIL PROTECTED] wrote:
I've implemented long-polling with MochiKit before. The JavaScript
doesn't really change all that much, you just use doXHR like you
normally would, the response just doesn't come back for a while and as
soon as you get one then you make another one, and you have to have
some sort of empty response that you ignore.
It doesn't make a whole lot of sense to implement more than one or two
of the comet mechanisms.. Long polling works pretty well across the
board, for example.
On Mon, Mar 3, 2008 at 9:43 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I'm a big fan of MochiKit and it has served me well.
I recently learned I can replace AJAX polling with something much
better
called Comet aka long polling aka http push.
I know there is a TurboGears+Dojo presentation at Pycon on this but I
was wondering if we must all replace MochiKit for Dojo to do this
paradigm.
Furthermore, doesn't Comet/http push/long polling require some
modifications to your *server* to do it right?? (e.g. event driven
instead of multithreaded ??)
I don't see how Dojo or any Javascript library can do it all by
itself.
Sincerely,
Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
MochiKit group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---