<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Custom &#8216;in_place_edit&#8217; With Validation</title>
	<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/</link>
	<description>Web Development and Design, and Anything That Matters</description>
	<pubDate>Fri, 25 Jul 2008 11:46:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: Paul L</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-88955</link>
		<pubDate>Wed, 23 Jul 2008 18:31:46 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-88955</guid>
					<description>@ Paul

Thank you so much for that tip, I've been going nuts trying to work out why the my javascript was being displayed and not executed.

Paul</description>
		<content:encoded><![CDATA[<p>@ Paul</p>
<p>Thank you so much for that tip, I&#8217;ve been going nuts trying to work out why the my javascript was being displayed and not executed.</p>
<p>Paul
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Nick</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-75613</link>
		<pubDate>Thu, 08 May 2008 16:08:17 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-75613</guid>
					<description>Thanks, this works quite well.  Does anybody know of a way to include something like an image next to the editable text, so that the user knows its editable?  This would also need to be nested within the link.

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks, this works quite well.  Does anybody know of a way to include something like an image next to the editable text, so that the user knows its editable?  This would also need to be nested within the link.</p>
<p>Thanks!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mahesh</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-71520</link>
		<pubDate>Wed, 16 Apr 2008 07:14:12 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-71520</guid>
					<description>its very nice,

 if we have used the in_place_editor_field for one field while editing the data by clicking on ok. its working fine. when i am submitting the field without giving data the validations are working by popup.  along with name field it is displaying all the error messages for the model.

how can we make to display the error message for only one field.</description>
		<content:encoded><![CDATA[<p>its very nice,</p>
<p> if we have used the in_place_editor_field for one field while editing the data by clicking on ok. its working fine. when i am submitting the field without giving data the validations are working by popup.  along with name field it is displaying all the error messages for the model.</p>
<p>how can we make to display the error message for only one field.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Paul</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-48082</link>
		<pubDate>Thu, 29 Nov 2007 11:19:55 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-48082</guid>
					<description>@santu:

i stumbled upon the same. (prototype 1.6.0, scriptaculus 1.8.0) 
After a few hours of code review i found a workaround. I do not have the time to track down the bug itself, but it seems to me that prototype does not properly respect the js content-type header in this case.

Add 

Ajax.InPlaceEditor.DefaultOptions.htmlResponse = false;

after the inclusion of prototype and scriptaculus.

best 
paul</description>
		<content:encoded><![CDATA[<p>@santu:</p>
<p>i stumbled upon the same. (prototype 1.6.0, scriptaculus 1.8.0)<br />
After a few hours of code review i found a workaround. I do not have the time to track down the bug itself, but it seems to me that prototype does not properly respect the js content-type header in this case.</p>
<p>Add </p>
<p>Ajax.InPlaceEditor.DefaultOptions.htmlResponse = false;</p>
<p>after the inclusion of prototype and scriptaculus.</p>
<p>best<br />
paul
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: santu</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-47601</link>
		<pubDate>Fri, 23 Nov 2007 12:31:59 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-47601</guid>
					<description>I have done the abouve process for in_place_edit validation  everything fine

It is giving the alret box on my validation but it is automatically stroing or updating with  the following  text

&quot;  	try { alert(&quot;Name has already been taken&quot;); Element.update(&quot;filter_name_1_in_place_editor&quot;, &quot;--None--&quot;); } catch (e) { alert('RJS error:\n\n' + e.toString()); alert('alert(\&quot;Name has already been taken\&quot;);\nElement.update(\&quot;filter_name_1_in_place_editor\&quot;, \&quot;--None--\&quot;);'); throw e }&quot;

Could u give me any ideas?</description>
		<content:encoded><![CDATA[<p>I have done the abouve process for in_place_edit validation  everything fine</p>
<p>It is giving the alret box on my validation but it is automatically stroing or updating with  the following  text</p>
<p>&#8221;  	try { alert(&#8221;Name has already been taken&#8221;); Element.update(&#8221;filter_name_1_in_place_editor&#8221;, &#8220;&#8211;None&#8211;&#8221;); } catch (e) { alert(&#8217;RJS error:\n\n&#8217; + e.toString()); alert(&#8217;alert(\&#8221;Name has already been taken\&#8221;);\nElement.update(\&#8221;filter_name_1_in_place_editor\&#8221;, \&#8221;&#8211;None&#8211;\&#8221;);&#8217;); throw e }&#8221;</p>
<p>Could u give me any ideas?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Herryanto Siatono</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-42324</link>
		<pubDate>Tue, 16 Oct 2007 06:02:21 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-42324</guid>
					<description>@Mario, I've checked rails documentation, in_place_editor_field doesn't support highlightcolor and highlightcolorend options, you probably need to use in_place_editor_ext, and just pass in the two options.

It should be transparent with in_place_edit_with_validation_for.</description>
		<content:encoded><![CDATA[<p>@Mario, I&#8217;ve checked rails documentation, in_place_editor_field doesn&#8217;t support highlightcolor and highlightcolorend options, you probably need to use in_place_editor_ext, and just pass in the two options.</p>
<p>It should be transparent with in_place_edit_with_validation_for.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Mario</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-42322</link>
		<pubDate>Tue, 16 Oct 2007 05:19:07 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-42322</guid>
					<description>Is there anyway to combine this with a way to use the :highlightcolor or  highlightendcolor?

Perhaps a way to combine it with in_place_editor_ext from http://www.ruby-forum.com/topic/86680#161018

Thanks!

-rails newb</description>
		<content:encoded><![CDATA[<p>Is there anyway to combine this with a way to use the :highlightcolor or  highlightendcolor?</p>
<p>Perhaps a way to combine it with in_place_editor_ext from <a href='http://www.ruby-forum.com/topic/86680#161018' rel='nofollow'>http://www.ruby-forum.com/topic/86680#161018</a></p>
<p>Thanks!</p>
<p>-rails newb
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mb</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-38773</link>
		<pubDate>Fri, 07 Sep 2007 16:10:35 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-38773</guid>
					<description>Nope.There was a problem with my validations and I fixed it. Now it works fine.</description>
		<content:encoded><![CDATA[<p>Nope.There was a problem with my validations and I fixed it. Now it works fine.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mb</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-38755</link>
		<pubDate>Fri, 07 Sep 2007 11:14:44 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-38755</guid>
					<description>But, I thought restful routing shouldn't update the database with get calls???</description>
		<content:encoded><![CDATA[<p>But, I thought restful routing shouldn&#8217;t update the database with get calls???
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mb</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-38754</link>
		<pubDate>Fri, 07 Sep 2007 11:10:29 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-38754</guid>
					<description>Hi, This works for me and catches invalid data that I enter in the field. However, if I hit the reload button after that, the invalid data gets stored in the database. It is because the reload generates a get call and so it doesn't get routed through your set_model_attr method.</description>
		<content:encoded><![CDATA[<p>Hi, This works for me and catches invalid data that I enter in the field. However, if I hit the reload button after that, the invalid data gets stored in the database. It is because the reload generates a get call and so it doesn&#8217;t get routed through your set_model_attr method.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
