[Product-Developers] Re: refreshing a viewlet periodically

Hedley Roos hedley at upfrontsystems.co.za
Wed Dec 10 11:02:48 UTC 2008


> So perhaps we should point this solution into plone's wishlist. 
> implementation should not be very hard. plone just needs to provide a 
> browserview, with 2 arguments:
> 
> div#some-dom-id:timeout {
>     evt-timeout-delay: 60000;
>     action-server: refresh_viewlet;
>     refresh_viewlet-viewlet: myviewlet;
>     refresh_viewlet-dom_id: some-id;
> }

How about this syntax?

div#some-dom-id:timeout {
     evt-timeout-delay: 60000;
     action-server: refreshViewlet('some-dom-id', 'plone.abovecontent', 
'plone.lockinfo');
}

The double "some-dom-id" does look a bit lame though.

H




More information about the Product-Developers mailing list