Try onClick: (aCanvas jQuery ajax serializeThis);<br><br>
<div class="gmail_quote">On Thu, Oct 20, 2011 at 3:12 PM, keropotter <span dir="ltr"><<a href="mailto:keropotter@gmail.com">keropotter@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi!! I'm developping an application using JQuery decorations, where the<br>buttons have icons.<br><br>
I have one button inside a form that's suposed to execute a Task, but I wish<br>NOT to submit the form by pressing that button given that I do a series of<br>validations on every input callback. So if the form submits, it fails<br>
because of the validations. I've tried using a #cancelButton but<br>unfortunately it generates a <input type="button" ...> which doesn't support<br>JQuery's .button icon styling (which I need in order to keep the layout of<br>
the page)<br><br>Is there any way to achieve the same behaviour of cancelButton by using an<br>ordinary button?<br><br>I've tried using a #button bePush; and invoking a callback via ajax, but<br>that ajax callback doesn't execute the button's callback, where I'm making a<br>
#call: to a WATask. Here's a piece of code for that purpose:<br><br> aCanvas button<br> bePush;<br> callback: [ self call: MyTask new ];<br> script: (aCanvas jQuery this button primaryIcon: 'ui-icon-plus');<br>
onClick: "I think here I should execute the button's callback"<br> with: 'Execute Task'.<br><br>Any ideas on how to do this?<br><br>Many thanks in advance!!<br>Alejandro<br>
<font color="#888888"><br>--<br>View this message in context: <a href="http://forum.world.st/cancelButton-using-WAButtonTag-tp3923147p3923147.html" target="_blank">http://forum.world.st/cancelButton-using-WAButtonTag-tp3923147p3923147.html</a><br>
Sent from the Seaside General mailing list archive at Nabble.com.<br>_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></font></blockquote></div><br>