[Seaside] scriptaculous - updater

Cédrick Béler cbeler at enit.fr
Thu Oct 12 16:52:21 UTC 2006


Hi again

(1) I use an periodical that displays the time in the banner (always 
present) on my app and It seems to me the presence of this priodical 
avoid expiration of session ? Am I right ?

(2) Also, I did a manipulation that cancel the updater. If I use an 
updater to change a part that contain a peridical, then the periodical 
effect is cancelled until a full refresh. I dont 'understand why... if 
you have any ideas to avoid loosing the effect or if I did something 
wrong ? I joined a sample app that display time and an anchor that 
refresh it using ajax.

snippet:
renderContent2On: html

    html paragraph
        script: (html periodical
                frequency: 2 second;
                  on: #renderTimeOn: of: self);
          with: [ self renderTimeOn: html ].
       
    html anchor
        onClick: (html updater
                    id: 'content';
                    on: #renderContent2On: of: self);
        with: 'live refresh'.


Thanks

cédrick



-------------- next part --------------
A non-text attachment was scrubbed...
Name: UpdaterTest.st
Type: application/squeak-changeset
Size: 1438 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20061012/162dc57f/UpdaterTest.bin


More information about the Seaside mailing list