Hi,<br>I tried to implement what you hinted at. I had edited just one line of controlsJs. I got rid of the extra set of brackets in <span style="font-weight: bold;"><span style="font-weight: bold;"><br><br></span>this.mouseoutListener
 = this.form.submit(); </span><br><br>Event.observe is done as it was earlier done. I have cropped only that part for your reference.<br><br><br>this.onclickListener = this.enterEditMode.bindAsEventListener(this);<br>&nbsp;&nbsp;&nbsp; 
this.mouseoverListener = this.enterHover.bindAsEventListener(this);<br>&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 0, 0);">//this.mouseoutListener = this.leaveHover.bindAsEventListener(this);Commented(not used)</span><br>&nbsp;&nbsp;&nbsp; Event.observe
(this.element, &#39;&#39;click&#39;&#39;, this.onclickListener);<br>&nbsp;&nbsp;&nbsp; Event.observe(this.element, &#39;&#39;mouseover&#39;&#39;, this.mouseoverListener);<br>&nbsp;&nbsp;&nbsp; Event.observe(this.element, &#39;&#39;mouseout&#39;&#39;, 
this.mouseoutListener);<br>...................<br>....................<br>....................<br>&nbsp;createForm: function() {<br>&nbsp;&nbsp;&nbsp; this.form = document.createElement(&quot;form&quot;);<br>&nbsp;&nbsp;&nbsp; <a href="http://this.form.id">
this.form.id</a> = this.options.formId;<br>&nbsp;&nbsp;&nbsp; Element.addClassName(this.form, this.options.formClassName)<br>&nbsp;&nbsp;&nbsp; <span style="font-weight: bold; color: rgb(255, 0, 0);">this.mouseoutListener = this.form.submit;&nbsp; // Added this Line
</span><br><br>&nbsp;&nbsp;&nbsp; this.form.onsubmit = this.onSubmit.bind(this);<br><br>&nbsp;&nbsp;&nbsp; this.createEditField();<br>&nbsp;&nbsp;&nbsp; if (this.options.textarea) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var br = document.createElement(&quot;br&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.form.appendChild
(br);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; if (this.options.textBeforeControls)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.form.appendChild(document.createTextNode(this.options.textBeforeControls));<br><br>&nbsp;&nbsp;&nbsp; if (this.options.okButton) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var okButton = 
document.createElement(&quot;input&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; okButton.type = &quot;submit&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; okButton.value = this.options.okText;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; okButton.className = &#39;&#39;editor_ok_button&#39;&#39;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.form.appendChild
(okButton);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; if (this.options.okLink) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var okLink = document.createElement(&quot;a&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; okLink.href = &quot;#&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; okLink.appendChild(document.createTextNode(this.options.okText
));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; okLink.onclick = this.onSubmit.bind(this);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; okLink.className = &#39;&#39;editor_ok_link&#39;&#39;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.form.appendChild(okLink);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; if (this.options.textBetweenControls &amp;&amp; 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (this.options.okLink || this.options.okButton) &amp;&amp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (this.options.cancelLink || this.options.cancelButton))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.form.appendChild(document.createTextNode(this.options.textBetweenControls
));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; if (this.options.cancelButton) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var cancelButton = document.createElement(&quot;input&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cancelButton.type = &quot;submit&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cancelButton.value = this.options.cancelText
;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cancelButton.onclick = this.onclickCancel.bind(this);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cancelButton.className = &#39;&#39;editor_cancel_button&#39;&#39;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.form.appendChild(cancelButton);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; if (this.options.cancelLink
) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var cancelLink = document.createElement(&quot;a&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cancelLink.href = &quot;#&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cancelLink.appendChild(document.createTextNode(this.options.cancelText));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cancelLink.onclick
 = this.onclickCancel.bind(this);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cancelLink.className = &#39;&#39;editor_cancel editor_cancel_link&#39;&#39;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.form.appendChild(cancelLink);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; if (this.options.textAfterControls
)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.form.appendChild(document.createTextNode(this.options.textAfterControls));<br>&nbsp; },<br><br>*******************<br>*******************<br>*******************<br><br>Throughout controlsJs, I have made only two changes as indicated above. It is still not updating when I move out of the form. Am I going wrong anywhere. 
<br><br>In your first mail, you had mentioned to achieve this using normal WAInput tag. How can this be achieved ?<br><br>Say I have the following form<br><br>html form:[html textinput value: self model title;<br>callback:[:value|self model title: value]]
<br><br>Where do I add onMouseOut method in the above form. Should my form have an id so that onMouseOut, the form is submitted ??<br><br>Thanks again in advance,<br>Rajeev<br><br><br><br><br><div><span class="gmail_quote">
On 9/3/07, <b class="gmail_sendername">Lukas Renggli</b> &lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;&nbsp;&nbsp;&nbsp;&nbsp; this.mouseoutListener = this.form.submit();&nbsp;&nbsp; // Added this Line<br><br>There are two problems here:<br><br>1. this.form.submit() assigns the result of evaluating the method<br>submit. I assume you would like to assign the function (without
<br>brakets):<br><br>&nbsp;&nbsp;&nbsp;&nbsp; this.mouseoutListener = this.form.submit;<br><br>2. The line above won&#39;t assign an event handler. For now you just<br>defined the alias this.mouseoutListener for this.form.submit. Check<br>out the Prototype document to see how to register for DOM events:
<br><br>&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.prototypejs.org/api/event/observe">http://www.prototypejs.org/api/event/observe</a><br><br>&gt; I have a sortable(Scriptaculous) with each listItem being an InplaceEditor.<br>&gt; Just in case, to avoid any problem due to coupling, I removed the sortList
<br>&gt; code and tried on a simple orderedList, yet no Progress for me.<br><br>Yes, this is usually a good strategy.<br><br>&gt; Please help me out if the changes I have made are inappropriate. I also went<br>&gt; through wiki at Scriptaculou for Inplace.., couldn&#39;t find anything of use to
<br>&gt; me.<br><br>In my first mail I was not talking about SUInPlaceEditor, but just<br>about using a plain textInput as it generated by WAInputTag.<br><br>&gt; If at all it is not possible for submission using onMouseOut event, how
<br>&gt; about having a mechanism to trigger the submit, when we click on anywhere<br>&gt; else on Canvas or any button/link/form other the edit form we are working<br>&gt; on.<br><br>Sure, form submission is possible from any kind of event.
<br><br>Lukas<br><br>--<br>Lukas Renggli<br><a href="http://www.lukas-renggli.ch">http://www.lukas-renggli.ch</a><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">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></blockquote></div><br><br clear="all">
<br>-- <br>Rajeev Lochan<br><br>Co-founder, AR-CAD.com<br><br><a href="http://www.ar-cad.com">http://www.ar-cad.com</a><br>+91 9243468076 (Bangalore)<br>080 65355873