Yes, I tried that but it doesn&#39;t work. The #call inside the callback has no effect.<br><br>So far, the only thing that seems to work is the following:<br><br><div style="margin-left:12px" id="imcontent"><span>
<div style="font-family:MS Shell Dlg 2;direction:ltr;color:#000000;font-size:9pt"> &quot;it doesn&#39;t submit the form, but executes the button&#39;s callback block&quot;

<p> aCanvas cancelButton <br>     callback: [ self call: MyTask new ];<br>     script: (aCanvas jQuery this button primariIcon: &#39;ui-icon-plus&#39;); &quot; the icon isn&#39;t displayed!! =( &quot;<br>     with: &#39;Execute Task&#39;.</p>

</div></span></div><br>But it&#39;s incompatible with my solution since it doesn&#39;t match the needs for the website layout.<br><br>Thank you!!<br>Alejandro<br><br><div class="gmail_quote">On Fri, Oct 21, 2011 at 12:12 PM, Robert Sirois <span dir="ltr">&lt;<a href="mailto:watchlala@hotmail.com">watchlala@hotmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div><div dir="ltr">
You can just put the ajax callback in the click handler.<div><br></div><div>RS<br><br><div><hr>From: <a href="mailto:keropotter@gmail.com" target="_blank">keropotter@gmail.com</a><br>Date: Fri, 21 Oct 2011 10:44:52 -0300<br>

Subject: Re: [Seaside] cancelButton using WAButtonTag<br>To: <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><div><div></div><div class="h5"><br><br>Hi, John! Thanks for your quick reply!<br>

<br>Unfortunatelly it doesn&#39;t work. Here is my code:<br><br>aCanvas button<br><div style="padding-bottom:0px;padding-left:3px;padding-right:3px;clear:both;padding-top:0px">

<div style="margin-left:12px"><span><div style="font-family:MS Shell Dlg 2;direction:ltr;color:#000000;font-size:9pt">  bePush;<br>  callback: self callback;<br>  script: (aCanvas jQuery this button primaryIcon: &#39;ui-icon-plus&#39;);<br>



  onClick: (aCanvas jQuery ajax 
serializeThis);<br>  with: self label.</div></span></div></div><br>Is there any other way to disable callbacks execution when a form submits? I&#39;ve also tried emulating cancelButtons behaviour by wrapping my own callback with WACancelActionCallback it complains about needing a NiladicValuable block.<br>



<br>Thanks again!<br><br><div>On Thu, Oct 20, 2011 at 6:08 PM, John McKeon <span dir="ltr">&lt;<a href="mailto:p3anoman@gmail.com" target="_blank">p3anoman@gmail.com</a>&gt;</span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">



Try onClick: (aCanvas jQuery ajax serializeThis);<div><div></div><div><br><br>
<div>On Thu, Oct 20, 2011 at 3:12 PM, keropotter <span dir="ltr">&lt;<a href="mailto:keropotter@gmail.com" target="_blank">keropotter@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;padding-left:1ex">Hi!! I&#39;m developping an application using JQuery decorations, where the<br>buttons have icons.<br><br>
I have one button inside a form that&#39;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&#39;ve tried using a #cancelButton but<br>unfortunately it generates a &lt;input type=&quot;button&quot; ...&gt; which doesn&#39;t support<br>JQuery&#39;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&#39;ve tried using a #button bePush; and invoking a callback via ajax, but<br>that ajax callback doesn&#39;t execute the button&#39;s callback, where I&#39;m making a<br>




#call: to a WATask. Here&#39;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: &#39;ui-icon-plus&#39;);<br>




               onClick: &quot;I think here I should execute the button&#39;s callback&quot;<br>               with: &#39;Execute Task&#39;.<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" target="_blank">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>
</div></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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>
<br></blockquote></div><br>
<br>_______________________________________________
seaside mailing list
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></div></div></div></div>                                               </div></div>
<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>
<br></blockquote></div><br>