[Seaside] Simple new method with a periodical on WATagbrush
Leandro Pérez
lperez at lifia.info.unlp.edu.ar
Tue Jun 19 21:51:43 UTC 2007
Hello everyone!
I want to add a simple method similar to this one below to WATagBrush:
WATagBrush >> time:initialRenderBlock
self with: initialRenderBlock.
canvas script: ((canvas periodical)
assignTo: 'my_periodical';
frequency: 2 seconds;
callback: [:r | r render:Time now ])
it would be used like this:
renderContentOn:html
html div time:'Calculating time...'.
The effect would be the same as:
renderContentOn:html
html div script: ((html periodical)
assignTo: 'my_periodical';
frequency: 5 seconds;
callback:[:r | html render: Time now]);
The problem is, when the page is rendered, "Calculating time..." appears but
nothing more happens, the periodical is not there...
this is not particularly what i need to do, but works well as an explanation
example.
any ideas?
i'm currently using
VisualWorks NonCommercial, 7.5
Seaside2.7b1
Scriptaculous2.6-mb.8
thanks in advance, best regards
Leandro
--
View this message in context: http://www.nabble.com/Simple-new-method-with-a-periodical-on-WATagbrush-tf3949141.html#a11203637
Sent from the Squeak - Seaside mailing list archive at Nabble.com.
More information about the Seaside
mailing list