<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Are you trying to query the server for validation before submitting or have client-side javascript to the validation?<div><br></div><div>Here's some ideas:</div><div><br></div><div>#onClick: ((html jQuery: #submit) html: 'Processing').</div><div>#onClick: (html jQuery ajax callback: [ "function" ]; onSuccess: ((html jQuery: #form) html: 'Thank you!'; addClass: 'ui-state-highlight').</div><div><br></div><div>RS<br><br><div>&gt; From: renggli@gmail.com<br>&gt; Date: Tue, 2 Aug 2011 16:29:19 +0200<br>&gt; Subject: Re: [Seaside] Click, Replace and Submit<br>&gt; To: seaside@lists.squeakfoundation.org<br>&gt; <br>&gt; &gt;&gt; This removes the button from the page, before the form is actually<br>&gt; &gt;&gt; submitted.<br>&gt; &gt;<br>&gt; &gt; Ok, so how can I replace the button by some other element (text/image) and<br>&gt; &gt; trigger an explicit submit? I could have missed that in the docs, so please<br>&gt; &gt; feel free to point me to some page explaining this!<br>&gt; <br>&gt; This has nothing to do with JQuery and/or Seaside, this is just HTTP,<br>&gt; HTML and JavaScript. The form submission is part of the browser event<br>&gt; handling of the button, but your click handler interfers with this<br>&gt; when you remove the button.<br>&gt; <br>&gt; &gt; In the meantime I can live with this. It's not as nice as I intended it, but<br>&gt; &gt; it works for now:<br>&gt; &gt;<br>&gt; &gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onClick: ((html jQuery id: #submit) value: 'Processing';<br>&gt; &gt; attributeAt: #disabled put: #true);<br>&gt; <br>&gt; Not sure, but I would say that doesn't work either: disabled buttons<br>&gt; typically do not trigger a form submission.<br>&gt; <br>&gt; Also, why do you write '#true' instead of 'true'?<br>&gt; <br>&gt; Lukas<br>&gt; <br>&gt; -- <br>&gt; Lukas Renggli<br>&gt; www.lukas-renggli.ch<br>&gt; _______________________________________________<br>&gt; seaside mailing list<br>&gt; seaside@lists.squeakfoundation.org<br>&gt; http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></div></div>                                               </div></body>
</html>