On Tuesday 04 March 2008 06:44:31 [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.
No. Comet "just" passes a stream of HTML to the browser that contains embedded script-tags. Which can contain whatever JS you like, using MK, Dojo, jQuery... whatnot. > 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 ??) Of course, yes. The server must keep open a connection to the client. This can be reached with a thread (there was some decorator or such posted quite a while ago on this list to accomplish that in TG), but it doesn't scale to well. For that, you need asychronous programming techniques. Diez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

