[Seaside] Re: Re: Re: SUPeriodical - changing the frequency on the fly

Frank Sukhu fsukhu at gmail.com
Thu Aug 24 01:03:57 UTC 2006

Hello Again,

I have been experimenting with the suggestions that were made but I have had
no success.

What I am trying to do is have a continuously running slide show where the
user can adjust the speed of the playback.  I have an html image displayed
and I use aSUPeriodical to update the image, in other words, when the
SUPeriodical is triggered I display the next slide (or image).  This all
works fine.

There is also aSUSlider that is used to control the playback speed.  I would
like the frequency of the SUPeriodical to be controlled by the SUSlider.
This is the part that I cannot get working.  The SUSlider works fine but I
cannot successfully modify the frequency of the SUPeriodical based on the
current value of the SUSlider.

Below is a crude picture of what the GUI to looks like:

| some jpg image  |                           <--- image changes at the
frequency set by the Slider
| _____________|

 +-----Slider ----+                           <----  slider used to control
playback frequency

Is there any way to do what I want using Scriptaclous?

Thanks for any help you can provide.


"Lukas Renggli" <renggli at gmail.com> wrote in message
news:67628d690608190123l1023a263j94deffffcc34dd9a at mail.gmail.com...
> > The canvas API is html in Smalltalk syntax, scriptalicious is basically
> > JavaScript in Smalltalk.  Of course, there's not a lot of documentation,
> > this is my understanding of how things work from my own experience, I
> > could well be wrong.
> This is correct. Still it is possible to do what the original poster
> requested. The trick is to assign the periodical updater to a
> variable, not on the smalltalk side but on the JavaScript side. This
> can be done like this:
> html periodical
>      configMsg1;
>      configMsg2;
>      configMsg3;
>      assignLocalTo: 'per'
> Now in a different rendering pass you can reference the existing
> periodical updater (and not creating a new one) by doing something
> like this:
> html periodical
>     alias: 'per';
>     configMsg4;
>     configMsg5
> Hope this helps.
> Lukas
> --
> Lukas Renggli
> http://www.lukas-renggli.ch

More information about the Seaside mailing list