[Seaside] How to stop periodical, end a polling mechanism... again

Lukas Renggli renggli at gmail.com
Thu Jul 5 15:38:44 UTC 2007

>         html submitButton
>                 onClick: (html periodical
>                         id: 'time';
>                         frequency: 1 second;
>                         assignTo: 'periodical';
>                         callback: [ :r | aCondition ifTrue:[
>                                                  (r periodical)
>                                                        alias: 'periodical';
>                                                        call: 'stop']]);
>                 text: 'Start'.

Have a look at the response you get in FireBug. There is no Javascript
included. You need to somehow add it to the response, for example by

     r script: (r periodical alias: 'periodical'; call: 'stop')

Also note that if you are on an old version of Scriptaculous scripts
of AJAX requests are not evaluated automatically. This means that you
maybe have to set  #evalScripts: to true on the outer updater.


Lukas Renggli

More information about the Seaside mailing list