<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: empty text for Ajax.InPlaceEditor</title>
	<atom:link href="http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/feed" rel="self" type="application/rss+xml" />
	<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor</link>
	<description>Ruby on Rails developers from Wellington, New Zealand</description>
	<lastBuildDate>Tue, 02 Feb 2010 09:42:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christian P.</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-387</link>
		<dc:creator>Christian P.</dc:creator>
		<pubDate>Mon, 05 Oct 2009 01:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-387</guid>
		<description>hi im using prototype 1.6 and scriptaculous 1.8 and the inPlaceEditor with the extension for emtpy textfields, but it doesnt work :( i dont know why. Any ideas ?</description>
		<content:encoded><![CDATA[<p>hi im using prototype 1.6 and scriptaculous 1.8 and the inPlaceEditor with the extension for emtpy textfields, but it doesnt work :( i dont know why. Any ideas ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay K</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-364</link>
		<dc:creator>Jay K</dc:creator>
		<pubDate>Wed, 17 Jun 2009 16:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-364</guid>
		<description>I took psyray&#039;s change above and made another little tweak:

leaveEditMode : function($super, transport) {
	retval = $super(transport);
	this.checkEmpty();
	return retval;
}

Call checkEmpty after you call $super, that way if you just cleared out the text that was there, it will return to &quot;click here to edit...&quot;

I put the whole thing that is working well for me at http://gist.github.com/131324.</description>
		<content:encoded><![CDATA[<p>I took psyray&#8217;s change above and made another little tweak:</p>
<p>leaveEditMode : function($super, transport) {<br />
	retval = $super(transport);<br />
	this.checkEmpty();<br />
	return retval;<br />
}</p>
<p>Call checkEmpty after you call $super, that way if you just cleared out the text that was there, it will return to &#8220;click here to edit&#8230;&#8221;</p>
<p>I put the whole thing that is working well for me at <a href="http://gist.github.com/131324" rel="nofollow">http://gist.github.com/131324</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-278</link>
		<dc:creator>George</dc:creator>
		<pubDate>Thu, 08 Jan 2009 18:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-278</guid>
		<description>Actually, I think I found a fix ?.  I borrowed the handleFormCancellation function from the standard InPlaceEdit function in Control.js and added the checkEmpty() function .. like ...


handleFormCancellation: function(e) {
	this.checkEmpty();
    this.wrapUp();
    if (e) Event.stop(e);
  }


Works, but I can&#039;t seem to set the field back to &#039;empty&#039; again ... but that&#039;s sorta OK I suppose ?.</description>
		<content:encoded><![CDATA[<p>Actually, I think I found a fix ?.  I borrowed the handleFormCancellation function from the standard InPlaceEdit function in Control.js and added the checkEmpty() function .. like &#8230;</p>
<p>handleFormCancellation: function(e) {<br />
	this.checkEmpty();<br />
    this.wrapUp();<br />
    if (e) Event.stop(e);<br />
  }</p>
<p>Works, but I can&#8217;t seem to set the field back to &#8216;empty&#8217; again &#8230; but that&#8217;s sorta OK I suppose ?.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-277</link>
		<dc:creator>George</dc:creator>
		<pubDate>Thu, 08 Jan 2009 17:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-277</guid>
		<description>Just porting my site from rails 1.2.3 to 2.2.2 and ran into a problem with the Ajax.InPlaceEditorWithEmtpyText.  I&#039;ve got the &#039;Click to Edit&#039; (in place of empty text) bit working OK (i.e. I see the dummy text) with the Prototype 1.6.0.3 and script.aculo.us 1.8.2, but when I click on the field and then click &#039;Cancel&#039; I lose the handle on the still empty field completely.  As far as I can tell, there is no communications with the rails backend, so the problem seems to be with what happens when &#039;Cancel&#039; gets hit, hence totally client-side.
The previous version, when used with the older prototype was working a treat, so I&#039;m sure it&#039;s something simple I&#039;m overlooking ?.
Any help would be muchly appreciated ... thanks :0)</description>
		<content:encoded><![CDATA[<p>Just porting my site from rails 1.2.3 to 2.2.2 and ran into a problem with the Ajax.InPlaceEditorWithEmtpyText.  I&#8217;ve got the &#8216;Click to Edit&#8217; (in place of empty text) bit working OK (i.e. I see the dummy text) with the Prototype 1.6.0.3 and script.aculo.us 1.8.2, but when I click on the field and then click &#8216;Cancel&#8217; I lose the handle on the still empty field completely.  As far as I can tell, there is no communications with the rails backend, so the problem seems to be with what happens when &#8216;Cancel&#8217; gets hit, hence totally client-side.<br />
The previous version, when used with the older prototype was working a treat, so I&#8217;m sure it&#8217;s something simple I&#8217;m overlooking ?.<br />
Any help would be muchly appreciated &#8230; thanks :0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-216</link>
		<dc:creator>Nik</dc:creator>
		<pubDate>Sun, 14 Sep 2008 07:45:48 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-216</guid>
		<description>@Karina: Hmmm, I&#039;m not sure what&#039;s wrong with that. Try emailing me your code and I&#039;ll see what I can do :)</description>
		<content:encoded><![CDATA[<p>@Karina: Hmmm, I&#8217;m not sure what&#8217;s wrong with that. Try emailing me your code and I&#8217;ll see what I can do :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karina</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-215</link>
		<dc:creator>Karina</dc:creator>
		<pubDate>Fri, 12 Sep 2008 14:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-215</guid>
		<description>Hi, i&#039;m using it and everything looks nice until i tried to change some options like 	cancelText, savingText or clickToEditText...

Any Idea?

PS: Thanx so much for the extension any how... ;)</description>
		<content:encoded><![CDATA[<p>Hi, i&#8217;m using it and everything looks nice until i tried to change some options like 	cancelText, savingText or clickToEditText&#8230;</p>
<p>Any Idea?</p>
<p>PS: Thanx so much for the extension any how&#8230; ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-209</link>
		<dc:creator>Nik</dc:creator>
		<pubDate>Mon, 08 Sep 2008 22:32:43 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-209</guid>
		<description>@jan: Nope, that&#039;s how it&#039;s meant to be. It&#039;s using the assignment operator there so that I can then use the element we&#039;ve found inside the conditional block.</description>
		<content:encoded><![CDATA[<p>@jan: Nope, that&#8217;s how it&#8217;s meant to be. It&#8217;s using the assignment operator there so that I can then use the element we&#8217;ve found inside the conditional block.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-207</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Mon, 08 Sep 2008 11:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-207</guid>
		<description>I haven&#039;t tried this code but this line looks suspect:
 
if (empty_span = this.element.select(&quot;.&quot; + this.options.emptyClassName).first())

Of course they will equal if you set empty_span to the conditional. Maybe a == would be more appropriate. Or maybe I&#039;m missing something. 

Keep it up!</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t tried this code but this line looks suspect:</p>
<p>if (empty_span = this.element.select(&#8220;.&#8221; + this.options.emptyClassName).first())</p>
<p>Of course they will equal if you set empty_span to the conditional. Maybe a == would be more appropriate. Or maybe I&#8217;m missing something. </p>
<p>Keep it up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grant Griffith</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-196</link>
		<dc:creator>Grant Griffith</dc:creator>
		<pubDate>Wed, 27 Aug 2008 18:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-196</guid>
		<description>I am getting a Ajax.InPLaceEditorWithEmptyText is not a constructor...  What am I doing wrong?  I am using the above code.</description>
		<content:encoded><![CDATA[<p>I am getting a Ajax.InPLaceEditorWithEmptyText is not a constructor&#8230;  What am I doing wrong?  I am using the above code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: albo</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-193</link>
		<dc:creator>albo</dc:creator>
		<pubDate>Sun, 17 Aug 2008 16:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-193</guid>
		<description>Fantastic !  That did help.</description>
		<content:encoded><![CDATA[<p>Fantastic !  That did help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: psyray</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-185</link>
		<dc:creator>psyray</dc:creator>
		<pubDate>Sun, 03 Aug 2008 23:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-185</guid>
		<description>hi 
first,thanks for this extension of inplaceeditor
i&#039;m with prototype 1.6.0.1 and everything works except if user press cancel or leave input box empty. In this case empty text don&#039;t get back.
I change the last extension name &#039;onComplete&#039; (which seems not to exists in my prototype version) by &#039;leaveEditMode&#039;. It works fine. 
Result :
leaveEditMode : function($super, transport) {
    this.checkEmpty();
    return $super(transport);
  }
May that help someone ;)</description>
		<content:encoded><![CDATA[<p>hi<br />
first,thanks for this extension of inplaceeditor<br />
i&#8217;m with prototype 1.6.0.1 and everything works except if user press cancel or leave input box empty. In this case empty text don&#8217;t get back.<br />
I change the last extension name &#8216;onComplete&#8217; (which seems not to exists in my prototype version) by &#8216;leaveEditMode&#8217;. It works fine.<br />
Result :<br />
leaveEditMode : function($super, transport) {<br />
    this.checkEmpty();<br />
    return $super(transport);<br />
  }<br />
May that help someone ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chadd</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-180</link>
		<dc:creator>chadd</dc:creator>
		<pubDate>Tue, 29 Jul 2008 13:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-180</guid>
		<description>that was it.  thanks much. this works great now.</description>
		<content:encoded><![CDATA[<p>that was it.  thanks much. this works great now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-177</link>
		<dc:creator>Nik</dc:creator>
		<pubDate>Mon, 21 Jul 2008 21:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-177</guid>
		<description>@chadd: Not sure :) Are you sure you&#039;re creating a new InPlaceEditorWithEmptyText rather than just a new Ajax.InPlaceEditor?</description>
		<content:encoded><![CDATA[<p>@chadd: Not sure :) Are you sure you&#8217;re creating a new InPlaceEditorWithEmptyText rather than just a new Ajax.InPlaceEditor?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chadd</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-176</link>
		<dc:creator>chadd</dc:creator>
		<pubDate>Mon, 21 Jul 2008 14:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-176</guid>
		<description>i&#039;ve got 1.8 and it doesn&#039;t seem to work.  it doesn&#039;t break anything, but i get no &quot;click to edit&quot; showing up.....   any ideas?</description>
		<content:encoded><![CDATA[<p>i&#8217;ve got 1.8 and it doesn&#8217;t seem to work.  it doesn&#8217;t break anything, but i get no &#8220;click to edit&#8221; showing up&#8230;..   any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik</title>
		<link>http://codetocustomer.com/blog/2008/06/empty-text-for-ajaxinplaceeditor/comment-page-1#comment-127</link>
		<dc:creator>Nik</dc:creator>
		<pubDate>Tue, 24 Jun 2008 05:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://codetocustomer.com/?p=58#comment-127</guid>
		<description>Man, Javascript looks trashy with short lines.... copy + paste may be in order :)</description>
		<content:encoded><![CDATA[<p>Man, Javascript looks trashy with short lines&#8230;. copy + paste may be in order :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
