[Seaside] How to stop periodical?

Boris Popov boris at deepcovelabs.com
Wed Nov 22 17:40:58 UTC 2006


No worries, it was just me not enabling scripts on updater.

Cheers!

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Ramon
Leon
Sent: Wednesday, November 22, 2006 9:38 AM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: Re: [Seaside] How to stop periodical?

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-pr
ocesses/

Ramon Leon
http://onsmalltalk.com



_______________________________________________
Seaside mailing list
Seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the Seaside mailing list