WACancelButtonTag (html cancelButton callback: [ ]...) should do what you&#39;re looking for?<div><br></div><div>Julian<br><br><div class="gmail_quote">On Mon, Jun 20, 2011 at 4:07 PM, Louis LaBrunda <span dir="ltr">&lt;<a href="mailto:Lou@keystone-software.com">Lou@keystone-software.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi All,<br>
<br>
Is there a way to trap the return from a web page before the attributes of<br>
an object are updated with the values from the web form?  Say one has a<br>
simple form with some fields that are connected to the attributes of an<br>
object with #on:of: and two submit buttons, save and cancel.  Normally one<br>
would make a copy of the object so the original doesn&#39;t get modified.  The<br>
callback on the save button would replace the original with the copy.  The<br>
callback on the cancel will discard the copy.<br>
<br>
If there is a way to see that the cancel button was clicked BEFORE the<br>
values of the form fields are applied to the object and stop them from<br>
being applied, one wouldn&#39;t need a copy of the original object.  The<br>
#on:of:&#39;s could be made to the original object and would be used if the<br>
save button is clicked and not if the cancel button is clicked.<br>
<br>
Is there a way to do this now?  If not, would it be hard to add?<br>
<br>
Lou<br>
-----------------------------------------------------------<br>
Louis LaBrunda<br>
Keystone Software Corp.<br>
SkypeMe callto://PhotonDemon<br>
mailto:<a href="mailto:Lou@Keystone-Software.com">Lou@Keystone-Software.com</a> <a href="http://www.Keystone-Software.com" target="_blank">http://www.Keystone-Software.com</a><br>
<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>
</blockquote></div><br></div>