<?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: Using Dojo for a simple show/hide toggle effect.</title>
	<atom:link href="http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html/feed" rel="self" type="application/rss+xml" />
	<link>http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html</link>
	<description>Programming is passion made real</description>
	<lastBuildDate>Fri, 09 Dec 2011 00:27:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: snell</title>
		<link>http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-240</link>
		<dc:creator>snell</dc:creator>
		<pubDate>Mon, 05 Apr 2010 07:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-240</guid>
		<description>I got the blinking effect by using the delay parameter...

var fadeArgs ={
			node : &quot;myNode&quot;,
			duration: 200,
			repeat:2
		};
		var fadeArgs1 ={
			node : &quot;myNode&quot;,
			duration: 200,
			delay:210,
			repeat:2
		};
dojo.fadeOut(fadeArgs).play();
dojo.fadeIn(fadeArgs1).play();</description>
		<content:encoded><![CDATA[<p>I got the blinking effect by using the delay parameter&#8230;</p>
<p>var fadeArgs ={<br />
			node : &#8220;myNode&#8221;,<br />
			duration: 200,<br />
			repeat:2<br />
		};<br />
		var fadeArgs1 ={<br />
			node : &#8220;myNode&#8221;,<br />
			duration: 200,<br />
			delay:210,<br />
			repeat:2<br />
		};<br />
dojo.fadeOut(fadeArgs).play();<br />
dojo.fadeIn(fadeArgs1).play();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snell</title>
		<link>http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-239</link>
		<dc:creator>snell</dc:creator>
		<pubDate>Mon, 05 Apr 2010 06:13:47 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-239</guid>
		<description>@lattenwald

I am hiding the div&#039;s by the same methods but a want a slight delay in hiding/ showing the div so that it gives a blinking effect.

is there some pause mechanism ?</description>
		<content:encoded><![CDATA[<p>@lattenwald</p>
<p>I am hiding the div&#8217;s by the same methods but a want a slight delay in hiding/ showing the div so that it gives a blinking effect.</p>
<p>is there some pause mechanism ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lattenwald</title>
		<link>http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-238</link>
		<dc:creator>lattenwald</dc:creator>
		<pubDate>Wed, 03 Jun 2009 12:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-238</guid>
		<description>@NetWaver:

function toggle(elem) {
 e=document.getElementById(elem);
 if(e.style.display==&quot;none&quot;) {
  e.style.display=&quot;&quot;;
 } else {
  e.style.display=&quot;none&quot;;
 }
}</description>
		<content:encoded><![CDATA[<p>@NetWaver:</p>
<p>function toggle(elem) {<br />
 e=document.getElementById(elem);<br />
 if(e.style.display==&#8221;none&#8221;) {<br />
  e.style.display=&#8221;";<br />
 } else {<br />
  e.style.display=&#8221;none&#8221;;<br />
 }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NetWaver</title>
		<link>http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-237</link>
		<dc:creator>NetWaver</dc:creator>
		<pubDate>Sun, 15 Feb 2009 20:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-237</guid>
		<description>Is there any standalone JS script that could do this one? I don&#039;t need any JS framework because this is the only effect I want.</description>
		<content:encoded><![CDATA[<p>Is there any standalone JS script that could do this one? I don&#8217;t need any JS framework because this is the only effect I want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yann</title>
		<link>http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-236</link>
		<dc:creator>Yann</dc:creator>
		<pubDate>Fri, 26 Sep 2008 17:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-236</guid>
		<description>How i can take this with suggestions closed?
where i need to change?
I think need change &#039;displayed&#039; but Im not sure, and don&#039;t know what i need to replace by...

so... sorry my english, Im from Brazil
see you!</description>
		<content:encoded><![CDATA[<p>How i can take this with suggestions closed?<br />
where i need to change?<br />
I think need change &#8216;displayed&#8217; but Im not sure, and don&#8217;t know what i need to replace by&#8230;</p>
<p>so&#8230; sorry my english, Im from Brazil<br />
see you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-235</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Fri, 22 Dec 2006 15:49:36 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-235</guid>
		<description>Not sure what is up with the backslashes in my comment.  Remove them to make the code work.</description>
		<content:encoded><![CDATA[<p>Not sure what is up with the backslashes in my comment.  Remove them to make the code work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-234</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Fri, 22 Dec 2006 15:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-234</guid>
		<description>Alepuzio, I agree with you.  If I hadn\&#039;t already been using Dojo, I wouldn\&#039;t recommend it for such a simple effect.  Actually, my favorite lightweight Javascript library is &lt;a href=&quot;http://jquery.com&quot; rel=&quot;nofollow&quot;&gt;jQuery&lt;/a&gt;.

In that library, you could duplicate the functionality like so:

&lt;code&gt;
$(document).ready(function() {
    $(\&#039;hider\&#039;).attr(\&#039;show\&#039;,true);
    $(\&#039;hider\&#039;).click(function() {
        var state = !($(\&#039;suggestions\&#039;).attr(\&#039;displayed\&#039;));
        var src = \&quot;media/images/\&quot;
                      + (state ? \&quot;show\&quot; : \&quot;hide\&quot;)
                      + \&quot;-suggestion.gif\&quot;;

        $(\&#039;suggestions\&#039;).toggleSlide(\&quot;slow\&quot;)
             .attr(\&#039;suggestions\&#039;, state);
        $(\&#039;hider\&#039;).attr(\&#039;src\&#039;, src);
});
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Alepuzio, I agree with you.  If I hadn\&#8217;t already been using Dojo, I wouldn\&#8217;t recommend it for such a simple effect.  Actually, my favorite lightweight Javascript library is <a href="http://jquery.com" rel="nofollow">jQuery</a>.</p>
<p>In that library, you could duplicate the functionality like so:</p>
<p><code><br />
$(document).ready(function() {<br />
    $(\'hider\').attr(\'show\',true);<br />
    $(\'hider\').click(function() {<br />
        var state = !($(\'suggestions\').attr(\'displayed\'));<br />
        var src = \"media/images/\"<br />
                      + (state ? \"show\" : \"hide\")<br />
                      + \"-suggestion.gif\";</p>
<p>        $(\'suggestions\').toggleSlide(\"slow\")<br />
             .attr(\'suggestions\', state);<br />
        $(\'hider\').attr(\'src\', src);<br />
});<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alepuzio</title>
		<link>http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-233</link>
		<dc:creator>alepuzio</dc:creator>
		<pubDate>Fri, 22 Dec 2006 13:16:09 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/using-dojo-for-a-simple-showhide-toggle-effect.html#comment-233</guid>
		<description>Hello,
me too I use DojoToolkit, but I think that this library is better for big project. Fro small project for me it&#039;s better ScriptACulo or Prototype.
What do you think?

Hi</description>
		<content:encoded><![CDATA[<p>Hello,<br />
me too I use DojoToolkit, but I think that this library is better for big project. Fro small project for me it&#8217;s better ScriptACulo or Prototype.<br />
What do you think?</p>
<p>Hi</p>
]]></content:encoded>
	</item>
</channel>
</rss>

