[Seaside] Re: SUPeriodical - changing the frequency on the fly

Ramon Leon ramon.leon at allresnet.com
Mon Aug 21 15:25:48 UTC 2006


> This is correct. Still it is possible to do what the original 
> poster requested. The trick is to assign the periodical 
> updater to a variable, not on the smalltalk side but on the 
> JavaScript side. This can be done like this:
> 
> html periodical
>      configMsg1;
>      configMsg2;
>      configMsg3;
>      assignLocalTo: 'per'
> 
> Now in a different rendering pass you can reference the 
> existing periodical updater (and not creating a new one) by 
> doing something like this:
> 
> html periodical
>     alias: 'per';
>     configMsg4;
>     configMsg5
> 
> Hope this helps.
> 
> Lukas

Hmm, interesting, I wasn't aware of assignLocalTo:, cool.



More information about the Seaside mailing list