[Seaside] How to stop periodical, end a polling mechanism... again
j.berthaud at aureo.info
Fri Jul 6 09:58:02 UTC 2007
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'.
onClick: ((html periodical)
frequency: 1 second;
(DateAndTime now -
(start ifNil: [start := DateAndTime now])) seconds > 10 "#sample criteria#"
alias: 'periodical'; "evalScripts: true; should not be there according
to Lukas' advise"
start := nil]
render: DateAndTime now - start]]);
Thank you Folks,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Seaside