<?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: script.aculo.us morph effects</title>
	<atom:link href="http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/feed/" rel="self" type="application/rss+xml" />
	<link>http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 11 Mar 2010 13:18:22 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tobie Langel</title>
		<link>http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/comment-page-1/#comment-12</link>
		<dc:creator>Tobie Langel</dc:creator>
		<pubDate>Tue, 21 Nov 2006 09:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2006/11/21/script-aculo-us-hits-1-7-beta#comment-12</guid>
		<description>Greeeeeaaaaat!!!!!

Happy I teased you about it...! ;-)

Out of curiosity, what is the rationale behind passing the styles  as a string, rather than an object?

Performance?

In any case, this is great!</description>
		<content:encoded><![CDATA[<p>Greeeeeaaaaat!!!!!</p>
<p>Happy I teased you about it&#8230;! <img src='http://mir.aculo.us/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Out of curiosity, what is the rationale behind passing the styles  as a string, rather than an object?</p>
<p>Performance?</p>
<p>In any case, this is great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobie Langel</title>
		<link>http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/comment-page-1/#comment-13</link>
		<dc:creator>Tobie Langel</dc:creator>
		<pubDate>Tue, 21 Nov 2006 09:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2006/11/21/script-aculo-us-hits-1-7-beta#comment-13</guid>
		<description>My question regarding performance was related to using a string rather than an object for passing the style, not to the overall performance of the morph effects...

And yes... I&#039;d much rather pass an object than a string, it&#039;s way more consistent with the way &lt;code&gt;setStyle&lt;/code&gt; is handled in Prototype.

OT: why not extend Prototype to have a &lt;code&gt;capitalize&lt;/code&gt; string method... I&#039;ve seen instances of &lt;code&gt;s.charAt(0).toUpperCase() + s.substring(1)&lt;/code&gt; pop up just about everywhere lately... ;-)</description>
		<content:encoded><![CDATA[<p>My question regarding performance was related to using a string rather than an object for passing the style, not to the overall performance of the morph effects&#8230;</p>
<p>And yes&#8230; I&#8217;d much rather pass an object than a string, it&#8217;s way more consistent with the way &lt;code&gt;setStyle&lt;/code&gt; is handled in Prototype.</p>
<p>OT: why not extend Prototype to have a &lt;code&gt;capitalize&lt;/code&gt; string method&#8230; I&#8217;ve seen instances of &lt;code&gt;s.charAt(0).toUpperCase() + s.substring(1)&lt;/code&gt; pop up just about everywhere lately&#8230; <img src='http://mir.aculo.us/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Nunemaker</title>
		<link>http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/comment-page-1/#comment-14</link>
		<dc:creator>John Nunemaker</dc:creator>
		<pubDate>Tue, 21 Nov 2006 09:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2006/11/21/script-aculo-us-hits-1-7-beta#comment-14</guid>
		<description>Just read your comment about css class support. Guess I should have read all the comments before posting. :)</description>
		<content:encoded><![CDATA[<p>Just read your comment about css class support. Guess I should have read all the comments before posting. <img src='http://mir.aculo.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: th0fu</title>
		<link>http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/comment-page-1/#comment-15</link>
		<dc:creator>th0fu</dc:creator>
		<pubDate>Tue, 21 Nov 2006 09:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2006/11/21/script-aculo-us-hits-1-7-beta#comment-15</guid>
		<description>Tobie: Great that you like it. Performance: it uses the script.aculo.us effects backend, so generally the performance is great. Object/string: for now it&#039;s strings, but I guess I&#039;ll add something to it that allows it to use object-based style definitions too. Also in the works: support for CSS classes.</description>
		<content:encoded><![CDATA[<p>Tobie: Great that you like it. Performance: it uses the script.aculo.us effects backend, so generally the performance is great. Object/string: for now it&#8217;s strings, but I guess I&#8217;ll add something to it that allows it to use object-based style definitions too. Also in the works: support for CSS classes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Nunemaker</title>
		<link>http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/comment-page-1/#comment-16</link>
		<dc:creator>John Nunemaker</dc:creator>
		<pubDate>Tue, 21 Nov 2006 09:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2006/11/21/script-aculo-us-hits-1-7-beta#comment-16</guid>
		<description>Thomas, This is pretty cool. My only aversion to this is that now we are using javascript for css. I haven&#039;t really thought it through, but is there anyway to morph between the current styles and a css class instead of putting in all the css selectors? Then one wouldn&#039;t have to maintain their presentation in two places (js and css) instead of one (css). Just curious.</description>
		<content:encoded><![CDATA[<p>Thomas, This is pretty cool. My only aversion to this is that now we are using javascript for css. I haven&#8217;t really thought it through, but is there anyway to morph between the current styles and a css class instead of putting in all the css selectors? Then one wouldn&#8217;t have to maintain their presentation in two places (js and css) instead of one (css). Just curious.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobie Langel</title>
		<link>http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/comment-page-1/#comment-17</link>
		<dc:creator>Tobie Langel</dc:creator>
		<pubDate>Tue, 21 Nov 2006 09:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2006/11/21/script-aculo-us-hits-1-7-beta#comment-17</guid>
		<description>@ Thomas: &lt;a href=&quot;http://dev.rubyonrails.org/ticket/6666&quot;&gt;patch for capitalize&lt;/a&gt;

@ John: Thomas wrote the following in the comments above:

&lt;blockquote&gt;Also in the works: support for CSS classes&lt;/blockquote&gt;

Looks like your mind had been read...</description>
		<content:encoded><![CDATA[<p>@ Thomas: &lt;a href=&quot;http://dev.rubyonrails.org/ticket/6666&quot;&gt;patch for capitalize&lt;/a&gt;</p>
<p>@ John: Thomas wrote the following in the comments above:</p>
<p>&lt;blockquote&gt;Also in the works: support for CSS classes&lt;/blockquote&gt;</p>
<p>Looks like your mind had been read&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobie Langel</title>
		<link>http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/comment-page-1/#comment-18</link>
		<dc:creator>Tobie Langel</dc:creator>
		<pubDate>Tue, 21 Nov 2006 09:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2006/11/21/script-aculo-us-hits-1-7-beta#comment-18</guid>
		<description>Come to think about it, if morph included an &lt;code&gt;initialStyle&lt;/code&gt; option, couldn&#039;t most effects be rewritten as calls to morph?

For example:

&lt;pre&gt;&lt;code&gt;
Effect.Highlight = function(element) {
  element = $(element);
  new Effect.Morph(element, {
    initialStyle: {
      backgroundColor: &#039;#f00&#039;
    },
      finalStyle: {
        backgroundColor: element.getStyle(&#039;backgroundColor&#039;)
    }
  })
}
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Come to think about it, if morph included an &lt;code&gt;initialStyle&lt;/code&gt; option, couldn&#8217;t most effects be rewritten as calls to morph?</p>
<p>For example:</p>
<p>&lt;pre&gt;&lt;code&gt;<br />
Effect.Highlight = function(element) {<br />
  element = $(element);<br />
  new Effect.Morph(element, {<br />
    initialStyle: {<br />
      backgroundColor: &#8216;#f00&#8242;<br />
    },<br />
      finalStyle: {<br />
        backgroundColor: element.getStyle(&#8216;backgroundColor&#8217;)<br />
    }<br />
  })<br />
}<br />
&lt;/code&gt;&lt;/pre&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: th0fu</title>
		<link>http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/comment-page-1/#comment-19</link>
		<dc:creator>th0fu</dc:creator>
		<pubDate>Tue, 21 Nov 2006 09:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2006/11/21/script-aculo-us-hits-1-7-beta#comment-19</guid>
		<description>The other effects have some additional features that might not be doable with effect.morph, but basically, yes some of them can be rewritten to use it (i _love_ patches!).

&lt;code&gt;.capitalize&lt;/code&gt;: please submit a tested patch (that also updates the occurences...) :)</description>
		<content:encoded><![CDATA[<p>The other effects have some additional features that might not be doable with effect.morph, but basically, yes some of them can be rewritten to use it (i _love_ patches!).</p>
<p>&lt;code&gt;.capitalize&lt;/code&gt;: please submit a tested patch (that also updates the occurences&#8230;) <img src='http://mir.aculo.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/comment-page-1/#comment-21</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 21 Nov 2006 09:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2006/11/21/script-aculo-us-hits-1-7-beta#comment-21</guid>
		<description>I suppose you heard it a few times, but: You (and Scriptaculous) rock!</description>
		<content:encoded><![CDATA[<p>I suppose you heard it a few times, but: You (and Scriptaculous) rock!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://mir.aculo.us/2006/11/21/script-aculo-us-hits-1-7-beta/comment-page-1/#comment-22</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Tue, 21 Nov 2006 09:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://mir.aculo.us//2006/11/21/script-aculo-us-hits-1-7-beta#comment-22</guid>
		<description>the effects are really choppy, and i have a 1.0GHz G4, not some old machine.  compared to moo.tools this is garbage.</description>
		<content:encoded><![CDATA[<p>the effects are really choppy, and i have a 1.0GHz G4, not some old machine.  compared to moo.tools this is garbage.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
