<?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: Even more twisty HTML</title>
	<atom:link href="http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/feed/" rel="self" type="application/rss+xml" />
	<link>http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/</link>
	<description>Thoughts</description>
	<lastBuildDate>Tue, 16 Feb 2010 12:02:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: pedz</title>
		<link>http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/comment-page-1/#comment-467</link>
		<dc:creator>pedz</dc:creator>
		<pubDate>Wed, 13 Aug 2008 02:09:06 +0000</pubDate>
		<guid isPermaLink="false">http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/#comment-467</guid>
		<description>The code assumes the gifs are in the same directory as the code.  I added this function:

function setNewBaseSrc(ele, newBaseSrc) {
    var dirPath = ele.src.replace(/[^\/]*$/, &#039;&#039;);
    ele.setAttribute(&#039;src&#039;, dirPath + newBaseSrc);
}

Then I replaced places that call setAttribute to set the src to call this routine instead.  e.g.

replace:
    twisty.setAttribute(&#039;src&#039;, &#039;twisty-hidden.gif&#039;);
with:
    setNewBaseSrc(twisty, &#039;twisty-hidden.gif&#039;);

One nit: The variable &quot;twisties&quot; does not have a &quot;var&quot; in front of it in the toggle function.</description>
		<content:encoded><![CDATA[<p>The code assumes the gifs are in the same directory as the code.  I added this function:</p>
<p>function setNewBaseSrc(ele, newBaseSrc) {<br />
    var dirPath = ele.src.replace(/[^\/]*$/, &#8221;);<br />
    ele.setAttribute(&#8217;src&#8217;, dirPath + newBaseSrc);<br />
}</p>
<p>Then I replaced places that call setAttribute to set the src to call this routine instead.  e.g.</p>
<p>replace:<br />
    twisty.setAttribute(&#8217;src&#8217;, &#8216;twisty-hidden.gif&#8217;);<br />
with:<br />
    setNewBaseSrc(twisty, &#8216;twisty-hidden.gif&#8217;);</p>
<p>One nit: The variable &#8220;twisties&#8221; does not have a &#8220;var&#8221; in front of it in the toggle function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Lund</title>
		<link>http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/comment-page-1/#comment-23</link>
		<dc:creator>Peter Lund</dc:creator>
		<pubDate>Thu, 01 Mar 2007 18:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/#comment-23</guid>
		<description>Yep, much better.  But I agree, the effect is actually ok (looks good, even!) as long as the backward motion is small relative to the section height.

Regarding nit #1, sometimes one would want to hide small subsections not because they take up space as such but because they constitute visual noise.

I think the way to make the effect look really nice and polished is to use two or three different animations.  Either the server can generate the HTML with the right one in each case or one can use an onload handler to loop over the sections and replace the standard animation with faster ones for the small sections.

That is, if one /really/ cares about polish ;)

(Don&#039;t you love fountain pens that make just the right click sound when you put the cap back on?)</description>
		<content:encoded><![CDATA[<p>Yep, much better.  But I agree, the effect is actually ok (looks good, even!) as long as the backward motion is small relative to the section height.</p>
<p>Regarding nit #1, sometimes one would want to hide small subsections not because they take up space as such but because they constitute visual noise.</p>
<p>I think the way to make the effect look really nice and polished is to use two or three different animations.  Either the server can generate the HTML with the right one in each case or one can use an onload handler to loop over the sections and replace the standard animation with faster ones for the small sections.</p>
<p>That is, if one /really/ cares about polish <img src='http://xkahn.zoned.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>(Don&#8217;t you love fountain pens that make just the right click sound when you put the cap back on?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xkahn</title>
		<link>http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/comment-page-1/#comment-22</link>
		<dc:creator>xkahn</dc:creator>
		<pubDate>Thu, 01 Mar 2007 15:39:06 +0000</pubDate>
		<guid isPermaLink="false">http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/#comment-22</guid>
		<description>Hey Peter,

Nit #1: I agree about the sliding speed.  I&#039;m not sure what the solution is, frankly.  I want the twisty animation to be the same speed as the slide animation.  That means the slide always has to be the same speed.  I suppose a refinement would be to get rid of both animations for small sections.  However, I&#039;m not sure it&#039;s worth it.  Why would you need to hide a small section?

Nit #2: This turned out to be a bug in the script.aculo.us animation package that I didn&#039;t bother to research because I liked the effect.  I&#039;ve updated both demos and the tar file to fix the problem.  (If the content outer div has padding, the animation doesn&#039;t take that into account.)

Thanks!</description>
		<content:encoded><![CDATA[<p>Hey Peter,</p>
<p>Nit #1: I agree about the sliding speed.  I&#8217;m not sure what the solution is, frankly.  I want the twisty animation to be the same speed as the slide animation.  That means the slide always has to be the same speed.  I suppose a refinement would be to get rid of both animations for small sections.  However, I&#8217;m not sure it&#8217;s worth it.  Why would you need to hide a small section?</p>
<p>Nit #2: This turned out to be a bug in the script.aculo.us animation package that I didn&#8217;t bother to research because I liked the effect.  I&#8217;ve updated both demos and the tar file to fix the problem.  (If the content outer div has padding, the animation doesn&#8217;t take that into account.)</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Lund</title>
		<link>http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/comment-page-1/#comment-21</link>
		<dc:creator>Peter Lund</dc:creator>
		<pubDate>Thu, 01 Mar 2007 08:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/#comment-21</guid>
		<description>Much better! :)

Nits:

1) sliding speed.  All sections slide in/out using the same amount of time.  Since some are short (&quot;Huh&quot;) and others long (the table and picture), the sliding speed varies between the sections -- which is to a certain extent fine.  It&#039;s just that a short section like &quot;Huh&quot; ends up sliding /very/ slowly, so you probably need to adjust the time if the slide distance is below a cut-off.

2) the sliding movements are not monotonic here.  That might be something you did on purpose, because it looks sort of okay on the big table/picture section.  On the other hand it looks awful on the short &quot;Huh&quot; section because the size of backwards step seems to be the same measured in pixels.  Did you use the wrong DOM object or the wrong margin/border attribute?  (Note, there are *many* browser bugs in that area!)</description>
		<content:encoded><![CDATA[<p>Much better! <img src='http://xkahn.zoned.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Nits:</p>
<p>1) sliding speed.  All sections slide in/out using the same amount of time.  Since some are short (&#8220;Huh&#8221;) and others long (the table and picture), the sliding speed varies between the sections &#8212; which is to a certain extent fine.  It&#8217;s just that a short section like &#8220;Huh&#8221; ends up sliding /very/ slowly, so you probably need to adjust the time if the slide distance is below a cut-off.</p>
<p>2) the sliding movements are not monotonic here.  That might be something you did on purpose, because it looks sort of okay on the big table/picture section.  On the other hand it looks awful on the short &#8220;Huh&#8221; section because the size of backwards step seems to be the same measured in pixels.  Did you use the wrong DOM object or the wrong margin/border attribute?  (Note, there are *many* browser bugs in that area!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shen</title>
		<link>http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/comment-page-1/#comment-20</link>
		<dc:creator>shen</dc:creator>
		<pubDate>Thu, 01 Mar 2007 06:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/#comment-20</guid>
		<description>Thats awesome, they are both working in ie6 now. I didn&#039;t realise the animation was to have the whole text area sliding in and out of the header line. Cool.

I&#039;m going to use this in a project I&#039;m working on now.

Shen</description>
		<content:encoded><![CDATA[<p>Thats awesome, they are both working in ie6 now. I didn&#8217;t realise the animation was to have the whole text area sliding in and out of the header line. Cool.</p>
<p>I&#8217;m going to use this in a project I&#8217;m working on now.</p>
<p>Shen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xkahn</title>
		<link>http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/comment-page-1/#comment-19</link>
		<dc:creator>xkahn</dc:creator>
		<pubDate>Wed, 28 Feb 2007 19:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/#comment-19</guid>
		<description>cs:
Yeah. That&#039;s actually how I tested.  Do you know how to debug Javascript in IE?  Especially in ies4linux?  All I got was a message that there was an error on the page.  It took others pointing out the line that caused the problem to find the issues.</description>
		<content:encoded><![CDATA[<p>cs:<br />
Yeah. That&#8217;s actually how I tested.  Do you know how to debug Javascript in IE?  Especially in ies4linux?  All I got was a message that there was an error on the page.  It took others pointing out the line that caused the problem to find the issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cs</title>
		<link>http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/comment-page-1/#comment-18</link>
		<dc:creator>cs</dc:creator>
		<pubDate>Wed, 28 Feb 2007 18:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://xkahn.zoned.net/blog/2007/02/28/even-more-twisty-html/#comment-18</guid>
		<description>http://www.tatanka.com.br/ies4linux/page/Main_Page</description>
		<content:encoded><![CDATA[<p><a href="http://www.tatanka.com.br/ies4linux/page/Main_Page" rel="nofollow">http://www.tatanka.com.br/ies4linux/page/Main_Page</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
