[Seaside] How to start a periodical as a consequence of an evaluator's callback

Leandro Pérez lperez at lifia.info.unlp.edu.ar
Tue Jul 17 17:38:16 UTC 2007

Lukas Renggli wrote:
>> html submitButton
>>         onClick: (html evaluator callback:[:script |
>>                         self doSomething.
>>                         "Here a periodical must be started"]);
>>         text:'Do something'.
>> I don´t know how to do that, any ideas??
> What about?
>     html submitButton
>         onClick: (html evaluator callback: [ :script |
>              self doSomething.
>              script add: (html periodical
>                   id: 'foo';
>                   callback: [ :r | ... ]) ]);
>         text: 'foo'

Excellent!! it worked greatly

Lukas Renggli wrote:
> The way the periodical updater is instantiated is a bit ugly right
> now. A long time ago I started to write a factory object that would
> allow you to instantiate any Scriptaculous objects from any context,
> however I never really found the time to finish it even there is not
> much missing. I have to take another look at this ...
> Cheers,
> Lukas
That would be a nice thing to have :)

Thanks a lot again Lukas

View this message in context: http://www.nabble.com/How-to-start-a-periodical-as-a-consequence-of-an-evaluator%27s-callback-tf4086228.html#a11654300
Sent from the Squeak - Seaside mailing list archive at Nabble.com.

More information about the Seaside mailing list