[Seaside] How to stop periodical?
Ramon Leon
ramonleon at cox.net
Wed Nov 22 17:38:03 UTC 2006
Boris Popov wrote:
> Here's an adaptation of a standard periodical test, except I'd like it
> to stop polling at some point (in this example, immediately),
>
> renderContentOn: html
> (html paragraph)
> script:
> ((html periodical)
> assignTo: 'my_periodical';
> frequency: 5 seconds;
> on: #renderTimeOn: of: self);
> with: 'getting current time...'
>
> renderTimeOn: html
> html render: Time now.
> html script:
> ((html javascript)
> add: (SUStream on: 'my_periodical.stop()');
> yourself)
>
> Seems to run okay, but doesn't stop and I can't seem to find any decent
> documentation for scriptaculous JS API,
>
> Any hints?
>
> Thanks!
>
> -Boris
See
http://onsmalltalk.com/programming/smalltalk/polling-for-long-running-processes/
Ramon Leon
http://onsmalltalk.com
More information about the Seaside
mailing list