<?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: In-Place Editing: The Summer 2007 Rewrite</title>
	<atom:link href="http://mir.aculo.us/2007/07/17/in-place-editing-the-summer-2007-rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://mir.aculo.us/2007/07/17/in-place-editing-the-summer-2007-rewrite/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 05 Aug 2010 21:56:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Marcel</title>
		<link>http://mir.aculo.us/2007/07/17/in-place-editing-the-summer-2007-rewrite/comment-page-1/#comment-277</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Tue, 17 Jul 2007 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2007/07/17/in-place-editing-the-summer-2007-rewrite#comment-277</guid>
		<description>Any chance of a demopage pointing out the changes, it would be nice to see the new stuff in action.</description>
		<content:encoded><![CDATA[<p>Any chance of a demopage pointing out the changes, it would be nice to see the new stuff in action.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan</title>
		<link>http://mir.aculo.us/2007/07/17/in-place-editing-the-summer-2007-rewrite/comment-page-1/#comment-278</link>
		<dc:creator>Stan</dc:creator>
		<pubDate>Tue, 17 Jul 2007 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2007/07/17/in-place-editing-the-summer-2007-rewrite#comment-278</guid>
		<description>Yeah, demos/examples would be very helpful.</description>
		<content:encoded><![CDATA[<p>Yeah, demos/examples would be very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caleb</title>
		<link>http://mir.aculo.us/2007/07/17/in-place-editing-the-summer-2007-rewrite/comment-page-1/#comment-279</link>
		<dc:creator>Caleb</dc:creator>
		<pubDate>Tue, 17 Jul 2007 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2007/07/17/in-place-editing-the-summer-2007-rewrite#comment-279</guid>
		<description>A followup, in the interest of completeness.

I must have misunderstood what th0fu said about the implementation of &#039;htmlResponse&#039; ...

In order for JavaScript instructions from RJS files kicked off automatically by Rails to be executed properly, I found it was necessary to set &#039;htmlResponse: false&#039;.  When set to true, the script would be rendered in the modified element (wrong!!), and also executed (altering the other elements on the page properly).  Set to false, everything works as it did before in IPE, and finally also allows for execution of scripts after editing is finished in an IPCE.

This has been a very confusing process for me.  Thus far, Rails has only been 50% effective or less at hiding the complexity and fragility of JS.  But keep up the good work!</description>
		<content:encoded><![CDATA[<p>A followup, in the interest of completeness.</p>
<p>I must have misunderstood what th0fu said about the implementation of &#8216;htmlResponse&#8217; &#8230;</p>
<p>In order for JavaScript instructions from RJS files kicked off automatically by Rails to be executed properly, I found it was necessary to set &#8216;htmlResponse: false&#8217;.  When set to true, the script would be rendered in the modified element (wrong!!), and also executed (altering the other elements on the page properly).  Set to false, everything works as it did before in IPE, and finally also allows for execution of scripts after editing is finished in an IPCE.</p>
<p>This has been a very confusing process for me.  Thus far, Rails has only been 50% effective or less at hiding the complexity and fragility of JS.  But keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caleb</title>
		<link>http://mir.aculo.us/2007/07/17/in-place-editing-the-summer-2007-rewrite/comment-page-1/#comment-280</link>
		<dc:creator>Caleb</dc:creator>
		<pubDate>Tue, 17 Jul 2007 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2007/07/17/in-place-editing-the-summer-2007-rewrite#comment-280</guid>
		<description>I am looking forward to seeing the new InPlaceCollectionEditor at work tomorrow!  Today was such a struggle with the former one.

I use the &quot;value&quot; option!

I usually find it necessary to update other interface elements when a dropdown list is changed, so I hope there will be support for doing so.

Thank you to everyone who has worked on this!</description>
		<content:encoded><![CDATA[<p>I am looking forward to seeing the new InPlaceCollectionEditor at work tomorrow!  Today was such a struggle with the former one.</p>
<p>I use the &quot;value&quot; option!</p>
<p>I usually find it necessary to update other interface elements when a dropdown list is changed, so I hope there will be support for doing so.</p>
<p>Thank you to everyone who has worked on this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caleb</title>
		<link>http://mir.aculo.us/2007/07/17/in-place-editing-the-summer-2007-rewrite/comment-page-1/#comment-281</link>
		<dc:creator>Caleb</dc:creator>
		<pubDate>Tue, 17 Jul 2007 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2007/07/17/in-place-editing-the-summer-2007-rewrite#comment-281</guid>
		<description>It&#039;s me again.

With regard to demos: please demonstrate the &#039;paramName&#039; and &#039;htmlResponse&#039; functionality -- I can find no evidence that it functions as advertised.

I&#039;m using prototype 1.5.1.1 and the very newest controls.js w/ Christophe&#039;s changes.  I am not certain whether there are other (undocumented) dependencies on other elements of script.aculo.us 1.7.1b3 ...  If so, it&#039;d be nice to know that.

As it stands now, IPCE ignores &quot;paramName&quot; and neither it nor the basic IPE (text field) will allow execution of JS sent back to the browser (say, to update other fields on the page).  Previously (yesterday, before I upgraded), the IPE would allow JS to execute, but the IPCE would not.  I have now -lost- functionality as a result of upgrading.

According to this post, I expected that JS would be executed as if I had set &#039;evalScripts&#039; even without explicitly setting it, since what you say is that it is &#039;true&#039; by default.

If I could find any documentation about how these mysterious features are supposed to work, that would be excellent.  If anyone knows of any, please tell me!

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>It&#8217;s me again.</p>
<p>With regard to demos: please demonstrate the &#8216;paramName&#8217; and &#8216;htmlResponse&#8217; functionality &#8212; I can find no evidence that it functions as advertised.</p>
<p>I&#8217;m using prototype 1.5.1.1 and the very newest controls.js w/ Christophe&#8217;s changes.  I am not certain whether there are other (undocumented) dependencies on other elements of script.aculo.us 1.7.1b3 &#8230;  If so, it&#8217;d be nice to know that.</p>
<p>As it stands now, IPCE ignores &quot;paramName&quot; and neither it nor the basic IPE (text field) will allow execution of JS sent back to the browser (say, to update other fields on the page).  Previously (yesterday, before I upgraded), the IPE would allow JS to execute, but the IPCE would not.  I have now -lost- functionality as a result of upgrading.</p>
<p>According to this post, I expected that JS would be executed as if I had set &#8216;evalScripts&#8217; even without explicitly setting it, since what you say is that it is &#8216;true&#8217; by default.</p>
<p>If I could find any documentation about how these mysterious features are supposed to work, that would be excellent.  If anyone knows of any, please tell me!</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe Porteneuve</title>
		<link>http://mir.aculo.us/2007/07/17/in-place-editing-the-summer-2007-rewrite/comment-page-1/#comment-282</link>
		<dc:creator>Christophe Porteneuve</dc:creator>
		<pubDate>Tue, 17 Jul 2007 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2007/07/17/in-place-editing-the-summer-2007-rewrite#comment-282</guid>
		<description>Caleb: it&#039;s the old dichotomy of Ajax.Request vs. Ajax.Updater: if you expect an HTML response, say so with htmlResponse: true (default).  Then scripts in the markup (stuff surrounded by &lt;script&gt; elements) will be processed, and the rest of the markup will replace your recent edition.  This is nominal.

The evalScripts option is NOT supported anymore.

If you expect a pure-JS response (as RJS would provide), set htmlResponse: false, and that&#039;s it: because Ajax.Request is used internally, it&#039;ll auto-eval JS-typed responses (i.e. HTTP responses featuring a JS MIME type, see http://prototypejs.org/api/ajax/request for details).

Also, do note that the latest controls.js assumes you&#039;re using the latest trunk, which means the prototype.js version in its lib/ directory (which I believe is more recent than 1.5.1.1, but I might be wrong).</description>
		<content:encoded><![CDATA[<p>Caleb: it&#8217;s the old dichotomy of Ajax.Request vs. Ajax.Updater: if you expect an HTML response, say so with htmlResponse: true (default).  Then scripts in the markup (stuff surrounded by &lt;script&gt; elements) will be processed, and the rest of the markup will replace your recent edition.  This is nominal.</p>
<p>The evalScripts option is NOT supported anymore.</p>
<p>If you expect a pure-JS response (as RJS would provide), set htmlResponse: false, and that&#8217;s it: because Ajax.Request is used internally, it&#8217;ll auto-eval JS-typed responses (i.e. HTTP responses featuring a JS MIME type, see <a href="http://prototypejs.org/api/ajax/request" rel="nofollow">http://prototypejs.org/api/ajax/request</a> for details).</p>
<p>Also, do note that the latest controls.js assumes you&#8217;re using the latest trunk, which means the prototype.js version in its lib/ directory (which I believe is more recent than 1.5.1.1, but I might be wrong).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe Porteneuve</title>
		<link>http://mir.aculo.us/2007/07/17/in-place-editing-the-summer-2007-rewrite/comment-page-1/#comment-285</link>
		<dc:creator>Christophe Porteneuve</dc:creator>
		<pubDate>Tue, 17 Jul 2007 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2007/07/17/in-place-editing-the-summer-2007-rewrite#comment-285</guid>
		<description>All: I&#039;m working on a full doc/demo page that will describe and demo all options for both InPlaceEditor and InPlaceCollectionEditor.  I can&#039;t say when it will be released (I&#039;m pretty overbooked), but it&#039;ll definitely get out before August is over.

staticnullvoid: the dev space you&#039;re referring to is huge and a hodge-podge of stuff ranging from despicable to excellent.  Prototype will put up a 3rd-party lib page that will be carefully screened and monitored.  Af for Scripty, every other developer writes some stuff he/she thinks is worthy of attention, but then who can say whether it&#039;s great stuff or absolute crap?  Still, Scripty&#039;s current site is a wiki, indeed, so anyone can tweak it: if you&#039;re so enclined, go ahead!</description>
		<content:encoded><![CDATA[<p>All: I&#8217;m working on a full doc/demo page that will describe and demo all options for both InPlaceEditor and InPlaceCollectionEditor.  I can&#8217;t say when it will be released (I&#8217;m pretty overbooked), but it&#8217;ll definitely get out before August is over.</p>
<p>staticnullvoid: the dev space you&#8217;re referring to is huge and a hodge-podge of stuff ranging from despicable to excellent.  Prototype will put up a 3rd-party lib page that will be carefully screened and monitored.  Af for Scripty, every other developer writes some stuff he/she thinks is worthy of attention, but then who can say whether it&#8217;s great stuff or absolute crap?  Still, Scripty&#8217;s current site is a wiki, indeed, so anyone can tweak it: if you&#8217;re so enclined, go ahead!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Micha</title>
		<link>http://mir.aculo.us/2007/07/17/in-place-editing-the-summer-2007-rewrite/comment-page-1/#comment-286</link>
		<dc:creator>Micha</dc:creator>
		<pubDate>Tue, 17 Jul 2007 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2007/07/17/in-place-editing-the-summer-2007-rewrite#comment-286</guid>
		<description>First, thank you very much for the great work - espacially the loadCollection-Option was a feature I really missed in the past.

Now - while I try the work with the new controls.js I&#039;ve got some errors with InternetExplorer and the CollectionEditor. Looks like there are JS-Errors while dynamicalyy building the option-list for the edit-field.

Is the InPlaceCollectionEditor working for you in InternetExplorer?

Micha</description>
		<content:encoded><![CDATA[<p>First, thank you very much for the great work &#8211; espacially the loadCollection-Option was a feature I really missed in the past.</p>
<p>Now &#8211; while I try the work with the new controls.js I&#8217;ve got some errors with InternetExplorer and the CollectionEditor. Looks like there are JS-Errors while dynamicalyy building the option-list for the edit-field.</p>
<p>Is the InPlaceCollectionEditor working for you in InternetExplorer?</p>
<p>Micha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergi</title>
		<link>http://mir.aculo.us/2007/07/17/in-place-editing-the-summer-2007-rewrite/comment-page-1/#comment-287</link>
		<dc:creator>Sergi</dc:creator>
		<pubDate>Tue, 17 Jul 2007 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2007/07/17/in-place-editing-the-summer-2007-rewrite#comment-287</guid>
		<description>Hi there,

Prototype recommends using a Hash for Ajax.[Request/Updater] calls.

I think that could be easily done with few changes like:

Rewrite the default callback:
  callback: function(form,value) {
    return Form.serialize(form, true);
  }

Lines like 709:
    params = (params ? params + &#039;&amp;&#039; : &#039;?&#039;) + &#039;editorId=&#039; + this.element.id;

... should be:
    params.editorId = this.element.id;

Which leads to also support a much needed &#039;parameters&#039; option for the IPE. You just need to rewrite 708-710 from controls.js

    var params = $H(this.options.callback(form, value));
    params.editorId = this.element.id;
    params.merge(this.options.parameters);

But, just a suggestion. ;)</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Prototype recommends using a Hash for Ajax.[Request/Updater] calls.</p>
<p>I think that could be easily done with few changes like:</p>
<p>Rewrite the default callback:<br />
  callback: function(form,value) {<br />
    return Form.serialize(form, true);<br />
  }</p>
<p>Lines like 709:<br />
    params = (params ? params + &#8216;&amp;&#8217; : &#8216;?&#8217;) + &#8216;editorId=&#8217; + this.element.id;</p>
<p>&#8230; should be:<br />
    params.editorId = this.element.id;</p>
<p>Which leads to also support a much needed &#8216;parameters&#8217; option for the IPE. You just need to rewrite 708-710 from controls.js</p>
<p>    var params = $H(this.options.callback(form, value));<br />
    params.editorId = this.element.id;<br />
    params.merge(this.options.parameters);</p>
<p>But, just a suggestion. <img src='http://mir.aculo.us/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

