[Seaside] AJAX Evaluator and Event Handler
Lukas Renggli
renggli at gmail.com
Thu Oct 4 12:42:43 UTC 2007
> html evaluator
> triggerFormElement: myElement;
> callback: [ :script |
> script insertion top id: #xyz; with: [ :r| r text 'TOP'].
> script insertion bottom; id: #xyz; with: [ :r| r text 'BOTTOM'].
> script alert: 'Insertion complete'
> ]
Yes, that's the solution.
Most JavaScript code is not asynchron and is evaluated from top top
bottom. The exceptions are the AJAX request/updater/evaluator's that
tigger a HTTP request in the background while the JavaScript
evaluation immediately continues (it normally doesn't wait to
complete). That's why you only need an event in those cases.
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the seaside
mailing list