2011/8/2 Lukas Renggli <span dir="ltr">&lt;<a href="mailto:renggli@gmail.com" target="_blank">renggli@gmail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



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><div></div></blockquote><div><br>I guess I made some assumptions about how submit works instead. So I hacked this piece of html (wow that felt strange) to see what could work.<br><br>&lt;html&gt;&lt;head&gt;&lt;title&gt;Demo&lt;/title&gt;&lt;/head&gt;<br>



&lt;body&gt;<br>&lt;form name=&quot;Person&quot; action=&quot;<a href="http://de.selfhtml.org/cgi-bin/formview.pl" target="_blank">http://de.selfhtml.org/cgi-bin/formview.pl</a>&quot;&gt;<br>&lt;input type=&quot;text&quot; id=&quot;lastname&quot; size=&quot;30&quot;&gt;<br>



&lt;input id=&quot;save&quot; type=&quot;submit&quot; onclick=&quot;dosubmit()&quot; value=&quot;Save&quot;&gt;<br>&lt;/form&gt;<br>&lt;script&gt;<br>function dosubmit() {<br>  var button = document.getElementById(&quot;save&quot;);<br>



  var text = document.createElement(&quot;span&quot;);<br>  text.innerHTML = &quot;Progress&quot;;<br>  button.parentNode.replaceChild(text, button);<br>  document.Person.submit();<br>}<br>&lt;/script&gt;<br>&lt;/body&gt;<br>



<br>This does <u>not</u> work. I guess I can&#39;t do a submit once I changed dom structure of the form? So if that&#39;s not gonna work it&#39;s not gonna work using Seaside either.<br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">



<div>
&gt;             onClick: ((html jQuery id: #submit) value: &#39;Processing&#39;;<br>
&gt; attributeAt: #disabled put: #true);<br>
<br>
</div>Not sure, but I would say that doesn&#39;t work either: disabled buttons<br>
typically do not trigger a form submission.<br></blockquote><div><br>Oh, that works. Maybe because the dom structure of the form hasn&#39;t changed only some attributes?<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


Also, why do you write &#39;#true&#39; instead of &#39;true&#39;?<br></blockquote><div><br>True. What was I thinking! ;)<br>I have to admit, that I still feel a bit confused about the jQuery, JS, Ajax stuff, so I thought setting some attribute &quot;directly&quot; needs to have a &quot;literal&quot; true.<br>

<br>Alex<br></div></div>