<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>> From: renggli@gmail.com<br>> Date: Tue, 2 Aug 2011 16:29:19 +0200<br>> Subject: Re: [Seaside] Click, Replace and Submit<br>> To: seaside@lists.squeakfoundation.org<br>> <br>> >> This removes the button from the page, before the form is actually<br>> >> submitted.<br>> ><br>> > Ok, so how can I replace the button by some other element (text/image) and<br>> > trigger an explicit submit? I could have missed that in the docs, so please<br>> > feel free to point me to some page explaining this!<br>> <br>> This has nothing to do with JQuery and/or Seaside, this is just HTTP,<br>> HTML and JavaScript. The form submission is part of the browser event<br>> handling of the button, but your click handler interfers with this<br>> when you remove the button.<br>> <br>> > In the meantime I can live with this. It's not as nice as I intended it, but<br>> > it works for now:<br>> ><br>> > onClick: ((html jQuery id: #submit) value: 'Processing';<br>> > attributeAt: #disabled put: #true);<br>> <br>> Not sure, but I would say that doesn't work either: disabled buttons<br>> typically do not trigger a form submission.<br>> <br>> Also, why do you write '#true' instead of 'true'?<br>> <br>> Lukas<br>> <br>> -- <br>> Lukas Renggli<br>> www.lukas-renggli.ch<br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></div></div>                                            </div></body>
</html>