[Seaside] Re: Q on Periodical
Lukas Renggli
renggli at gmail.com
Sun Oct 9 18:19:50 UTC 2011
> And, as an aside, shouldn't the evalScripts: false result in it not running
> or is my understanding incorrect?
Please check the method comment of the method:
PTUpdater>>evalScripts: aBoolean
"This determines whether <script> elements in the response text
are evaluated or not. The default implementation of Prototypes does
not evaluate script, however this implementation changes this odd
behavior."
self options at: 'evalScripts' put: aBoolean
An in-depth description you also find in the PrototypeJS documentation:
http://api.prototypejs.org/ajax/Ajax/Updater/
Navigating to the subclass should answer your original question:
http://api.prototypejs.org/ajax/Ajax/PeriodicalUpdater/
The periodical updater does always trigger a request in the first
place. You can also see that in the source code:
https://github.com/sstephenson/prototype/blob/1fb9728/src/ajax/periodical_updater.js#L220
So this means you should only create a periodical updater when you
also want to start it.
Lukas
--
Lukas Renggli
www.lukas-renggli.ch
More information about the seaside
mailing list