tags:

views:

346

answers:

1

What is the best way to refresh a Tapestry zone on a regular basis to pull changes of a dataset from a server?

+1  A: 

You could use Prototype's PeriodicalExecutor, and have that call Tapestry's ZoneManager to update the zone:

new PeriodicalExecuter(function(pe) {
    var zoneObject = Tapestry.findZoneManager(element);
    zoneObject.updateFromUrl(updateUrl);
}, 5);
Henning