[Seaside] Click, Replace and Submit

Louis LaBrunda Lou at Keystone-Software.com
Tue Aug 2 15:22:11 UTC 2011


Hi Alex,

How about defining both the text you want to see (label: or what ever) and
the button, with the text hidden and the button showing.  Then in the
onClick, show the text and hide the button.

Lou


>2011/8/2 Lukas Renggli <renggli at gmail.com>
>
>> This removes the button from the page, before the form is actually
>> submitted.
>>
>
>Ok, so how can I replace the button by some other element (text/image) and
>trigger an explicit submit? I could have missed that in the docs, so please
>feel free to point me to some page explaining this!
>
>In the meantime I can live with this. It's not as nice as I intended it, but
>it works for now:
>
>            onClick: ((html jQuery id: #submit) value: 'Processing';
>attributeAt: #disabled put: #true);
>
>Thanks, Alex
-----------------------------------------------------------
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com



More information about the seaside mailing list