Hedley Roos schrieb:
BTW: Use refreshViewlet instead of deprecated macroContent. See:
http://dev.plone.org/plone/ticket/7879
Thank you thank you thank you! I missed this one.
In answer to your original question - yes, simply add this declaration
somewhere in your kinetic stylesheet.
div#some-dom-id:timeout {
evt-timeout-delay: 60000;
action-server: my.product.refresher;
}
i thought this one should be possible, but it's really not a nice
solution for this usecase. i think refreshing viewlets/portlets/... will
become more and more important in web 2.0 solutions.
where my.product.refresher is a browser view that subclasses PloneKSSView
There is no shortcut like
div#some-dom-id:timeout {
evt-timeout-delay: 60000;
action-server: refreshViewlet('myviewlet','some-id');
}
That would of course be cool and save code :)
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;
}
thanks again
saily
H
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers