[Seaside] cancelButton using WAButtonTag
keropotter at gmail.com
Fri Oct 21 13:44:52 UTC 2011
Hi, John! Thanks for your quick reply!
Unfortunatelly it doesn't work. Here is my code:
callback: self callback;
script: (aCanvas jQuery this button primaryIcon: 'ui-icon-plus');
onClick: (aCanvas jQuery ajax serializeThis);
with: self label.
Is there any other way to disable callbacks execution when a form submits?
I've also tried emulating cancelButtons behaviour by wrapping my own
callback with WACancelActionCallback it complains about needing a
On Thu, Oct 20, 2011 at 6:08 PM, John McKeon <p3anoman at gmail.com> wrote:
> Try onClick: (aCanvas jQuery ajax serializeThis);
> On Thu, Oct 20, 2011 at 3:12 PM, keropotter <keropotter at gmail.com> wrote:
>> Hi!! I'm developping an application using JQuery decorations, where the
>> buttons have icons.
>> I have one button inside a form that's suposed to execute a Task, but I
>> NOT to submit the form by pressing that button given that I do a series of
>> validations on every input callback. So if the form submits, it fails
>> because of the validations. I've tried using a #cancelButton but
>> unfortunately it generates a <input type="button" ...> which doesn't
>> JQuery's .button icon styling (which I need in order to keep the layout of
>> the page)
>> Is there any way to achieve the same behaviour of cancelButton by using an
>> ordinary button?
>> I've tried using a #button bePush; and invoking a callback via ajax, but
>> that ajax callback doesn't execute the button's callback, where I'm making
>> #call: to a WATask. Here's a piece of code for that purpose:
>> aCanvas button
>> callback: [ self call: MyTask new ];
>> script: (aCanvas jQuery this button primaryIcon:
>> onClick: "I think here I should execute the button's
>> with: 'Execute Task'.
>> Any ideas on how to do this?
>> Many thanks in advance!!
>> View this message in context:
>> Sent from the Seaside General mailing list archive at Nabble.com.
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside