[Seaside] How to stop periodical, end a polling mechanism... again
lperez at lifia.info.unlp.edu.ar
Fri Jul 6 18:57:34 UTC 2007
Julien Berthaud wrote:
> I have followed your thread which is quite interesting.
> I have successfully followed the advices Lukas provided.
>>> It's so frustrating!!
> It's so amazing when it works !!!
>> I copy and pasted your example. I fixed it according to my previous
>> mail and it works. As a response you should only get:
>> Nothing else, especially no <head> and <body> tags.
> Indeed, no <head> and <body> tags in the response.
> But I had both of these tags due to the #evalScripts: not at the right
> As Lukas suggested, I am on an older version of Scriptaculous and I
> needed #evalScripts: set to true but on the OUTER updater.
> Here is the code:
> html div id: 'time'.
> (html submitButton)
> onClick: ((html periodical)
> id: 'time';
> *evalScripts: true;*
> frequency: 1 second;
> assignTo: 'periodical';
> [:r |
> (DateAndTime now -
> (start ifNil: [start := DateAndTime now])) seconds > 10 "#sample
> [r script:
> ((r periodical)
> alias: 'periodical'; "evalScripts: true; should not be there according
> to Lukas' advise"
> call: 'stop').
> start := nil]
> ifFalse: [r
> render: DateAndTime now - start]]);
> text: 'Start'.
> Thank you Folks,
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
thanks to both of you Lukas and Julien, right now I'm not at work and can't
access my vw image, i should consider seriously bringing it back to my
home.. :) anyway, as soon as i get back to work i'll try that and I will
post how everything turned out, hopefully ok!
View this message in context: http://www.nabble.com/How-to-stop-periodical%2C-end-a-polling-mechanism...-again-tf4030323.html#a11470775
Sent from the Squeak - Seaside mailing list archive at Nabble.com.
More information about the Seaside