[Seaside] Different actions upon form submission possible?
Lukas Renggli
renggli at gmail.com
Wed Oct 17 12:11:50 UTC 2007
> I have a form and i wanted to have different actions being performed
> upon form submission (i.e: 'save', 'apply', 'verify', etc...), i think
> this is pretty easy to achieve by having different callbacks on
> different submit buttons. The problem is that i didn't want to use
> submit buttons but instead some anchors that i have up in the page in
> some kind of toolbar. Is there someway to achieve this?
JavaScript. For example using an Scriptaculous something along this should work:
html anchor
onClick: (html evaluator
triggerFormNamed: 'formId';
callback: [ :script |
self validate; whatever; something.
script refresh ]);
with: 'validate'
Lukas
>
> Thanks in advance for the help,
>
> Alex Paes
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the seaside
mailing list