[Seaside] Re: Q on Periodical

Bob Arning arning at charm.net
Sun Oct 9 20:11:55 UTC 2011


Well, that seems easier...

renderContentOn: html

     html div
         onClick: ((html scriptaculous periodical)
             frequency: 1;
             on: #renderNextImageOn: of: self;
             assignTo: 'FLPer'
             );

         with: [html text: 'click to start'].

     html div
         onClick: ('FLPer.stop();');
         with: 'click to stop'.

Cheers,
Bob

On 10/9/11 3:57 PM, squeakman wrote:
> On 09/10/2011 2:37 PM, Bob Arning wrote:
>> I'm not sure why you want to create the periodical before you need it to
>> run
>>
>
> Hi Bob,
>
> I have a "Play" button that when hit will display a series of images 
> one per x seconds.  I want to use the periodical to trigger a new 
> image every x seconds.
>
> I want to do this using Ajax - when the "Play" button is hit I have an 
> Ajax callback that on the first invocation, sets up the Periodical.  
> My problem is that I cannot figure out how to setup the periodical in 
> an Ajax callback.
>
> Because I cannot figure out how to start the Periodical in an Ajax 
> callback, my "solution" was to setup the Periodical in my 
> renderContentOn: and immediately stop it.  Later when the "Play" 
> button is hit, I start the Periodical.
>
> I hope that explains what I am up to.
>
> I do appreciate your help, thanks.
>
> Cheers,
> Frank
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20111009/55a88f25/attachment.htm


More information about the seaside mailing list