If you want streaming updates to a page you might be interested in
tapestry-atmosphere or tapestry-cometd rather than 12 periodic updates on a
page.

https://github.com/uklance/tapestry-atmosphere
http://t5atmosphere-lazan.rhcloud.com/

https://github.com/uklance/tapestry-cometd
http://t5cometd-lazan.rhcloud.com/

On 17 Sep 2016 9:17 a.m., "Adam X" <vbgnm3c...@gmail.com> wrote:

> Hi,
>
> I'm trying to wrap my head around the new 5.4 JS support. I have the
> following module which gets invoked whenever a zone is updated,
> however, I have 12 zones on my page periodically updated. I don't know
> at runtime which zone is updated, but I need to be notified about it.
>
> So I have the following module:
>
> define(["t5/core/dom", "t5/core/events"], function(dom, events) {
>
>     return function() {
>         dom.onDocument(events.zone.didUpdate, function() {
>             alert('how can I get ID of a zone that was updated?');
>         });
>     }
> });
>
> I have a hard time figuring out how to pass the ID of a zone that was
> updated.
>
> Adam
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to