I'm not aware of any existing Comet-style push functionality in Weblocks. I think what I would do is just mark the widget dirty if the interval between the last request and the current one is larger than some minimum. That means the user would see the content change only when they performed some other operation involving a request. Seems like that would suffice for what you're trying to do.
If not, I guess you're back in the world of writing custom JavaScript to periodically poll the server. -- Scott On Sat, Jul 21, 2012 at 10:35 AM, John Morrison <[email protected]> wrote: > Hi All; > > I want to show, to each logged-in user of the weblocks webapp, in only one > widget on only one page, a dynamic list of all logged-in users (kind of like > a game-server "lobby" page). > > Is there some best-weblocks-practice way to dynamically update such a > widget? > > I was hoping there was some ready-made AJAXian "push refresh" DHTML type > capability for a gridedit-type widget. (I have already done something like > this (raw JavaScript + hunchentoot easy-handler) for an OpenLayers map, but > was hoping to avoid having to roll my own again.) > > I suppose polling on some interval would suffice - Googling turned up this, > but it seems to be on a per-app (rather than either a per-page or per-widget > basis). > > I would greatly appreciate being pointed in the right direction. > > Thanks! > > -jm > > -- > You received this message because you are subscribed to the Google Groups > "weblocks" 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/weblocks?hl=en. -- You received this message because you are subscribed to the Google Groups "weblocks" 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/weblocks?hl=en.
