<?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, 12 Mar 2010 13:53:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: Gudata</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-162881</link>
		<pubDate>Tue, 16 Jun 2009 12:55:53 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-162881</guid>
					<description>If you have some errors in production environment you could try to move
custom_in_place_editing.rb  in the config/initializers directory.</description>
		<content:encoded><![CDATA[<p>If you have some errors in production environment you could try to move<br />
custom_in_place_editing.rb  in the config/initializers directory.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brian Getting</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-122072</link>
		<pubDate>Fri, 16 Jan 2009 18:51:21 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-122072</guid>
					<description>Nevermind. It turns out that you have to put the external control element (a div or something) in a particular place. I had it directly after the &quot;in_place_editor_field&quot; method in my template, but it would not take. Moving it out of the same paragraph seems to work.

My fault, it has nothing to do with your code!</description>
		<content:encoded><![CDATA[<p>Nevermind. It turns out that you have to put the external control element (a div or something) in a particular place. I had it directly after the &#8220;in_place_editor_field&#8221; method in my template, but it would not take. Moving it out of the same paragraph seems to work.</p>
<p>My fault, it has nothing to do with your code!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brian Getting</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-122005</link>
		<pubDate>Fri, 16 Jan 2009 15:56:01 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-122005</guid>
					<description>Anyone have any ideas why the :external_control option doesn't seem to work with this?

Otherwise this works great. The :save_text option works, but the :external_control does not.</description>
		<content:encoded><![CDATA[<p>Anyone have any ideas why the :external_control option doesn&#8217;t seem to work with this?</p>
<p>Otherwise this works great. The :save_text option works, but the :external_control does not.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: suresh</title>
		<link>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-110198</link>
		<pubDate>Wed, 03 Dec 2008 08:10:24 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/#comment-110198</guid>
					<description>I have done the aboue 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

” try { alert(”Name has already been taken”); Element.update(”filter_name_1_in_place_editor”, “–None–”); } catch (e) { alert(’RJS error:\n\n’ + e.toString()); alert(’alert(\”Name has already been taken\”);\nElement.update(\”filter_name_1_in_place_editor\”, \”–None–\”);’); throw e }”

plz help me out from this. i am getting this bug whenevr i try to 
press ok</description>
		<content:encoded><![CDATA[<p>I have done the aboue 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>” try { alert(”Name has already been taken”); Element.update(”filter_name_1_in_place_editor”, “–None–”); } catch (e) { alert(’RJS error:\n\n’ + e.toString()); alert(’alert(\”Name has already been taken\”);\nElement.update(\”filter_name_1_in_place_editor\”, \”–None–\”);’); throw e }”</p>
<p>plz help me out from this. i am getting this bug whenevr i try to<br />
press ok
</p>
]]></content:encoded>
				</item>
	<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>
</channel>
</rss>
