[Seaside] submit inside SUEvaluator callback problem
Burella Juan M.
juan.burella at gmail.com
Mon Jan 12 19:36:48 UTC 2009
I'm trying the following code, but isn't working, the halt is ignored:
renderContentOn: aRenderer
aRenderer form
id: 'formId';
with: [
aRenderer select
id: 'testSelect';
list: #(1 2 3 4 5 6 7 8);
onChange: (
( aRenderer evaluator
callback: [: script |
script element id: 'updaterId';
update: [: r |
r submitButton
callback: [ self halt ];
with: 'hola'
].
]
)
).
aRenderer div id: 'updaterId'
].
I've tried with the form inside the update block, and it worked fine, but
what I really need is the form enclosing the code like above. Any tips?
I'm using
Seaside2.8a1-pmm.582
Scriptaculous-lr.245
Cheers
Juan M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090112/567014f1/attachment.htm
More information about the seaside
mailing list