[Seaside] Executing block and submitting form with textlink
Kamil Kukura
kamk at volny.cz
Sat Aug 28 10:47:50 CEST 2004
Andreas Nilsson wrote:
>> Does anyone know an easy way to submit a form and execute a block
>> with a textlink in Seaside?
>> This is what i've come up with so far but i don't like having to put
>> inline javascript code in my components:
>>
>> renderContentOn: html
>> html attributes at: 'onClick' put: 'javascript:submit()'.
>> html anchorWithAction: [self removeRecords] text: 'Remove'.
>>
>> /Adde
>
Normaly you can submit and execute within form block by:
html submitButtonWithAction: [self removeRecords] text: 'Remove'.
I guess this is not quite possible using anchors without calling
javascript functions to help.
--
Kamil
More information about the Seaside
mailing list