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 -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 [hidden email] 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. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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 _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Boris Popov, DeepCove Labs (SNN)
Nevermind me with my evalScripts set to false again ;)
Thanks! -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 [hidden email] 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: [hidden email] [mailto:[hidden email]] On Behalf Of Boris Popov Sent: Wednesday, November 22, 2006 9:18 AM To: [hidden email] Subject: [Seaside] How to stop periodical? 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 -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 [hidden email] 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. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Ramon Leon-4
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 [hidden email] 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: [hidden email] [mailto:[hidden email]] 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 > 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 [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |