[Seaside] Re: Session expiry

Lukas Renggli renggli at gmail.com
Thu Jan 3 06:43:16 UTC 2008

> Would #periodical be equivalent?

#periodical want's to update some DOM element, like the
#updater.#request just performs an empty callback on the server and
does not update anything on the client.

> Can this go into <head> with #updateRoot
> and WAHtmlRoot#addScript:aString?

It is the best, if you use

  self session addLoadScript: (...)

to add it. This makes sure that all resources are properly loaded and
initialized script is evaluated.

> Or does this go into <body> and need to be wrapped like:
>  html paragraph
>   class: 'hidden';
>   script: (html periodical
>     frequency: 10 seconds ; "just put 10 for testing"
>     callback: []);
>   with: ''.

That should work as well.

   html script: (...)


Lukas Renggli

More information about the seaside mailing list