<?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: Implementing Basic and Fancy Show/Hide in MooTools&#160;1.2</title> <atom:link href="http://davidwalsh.name/mootools-show-hide/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/mootools-show-hide</link> <description>PHP, CSS, MooTools, jQuery, and Everything Else</description> <lastBuildDate>Thu, 11 Mar 2010 12:44:18 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Neil</title><link>http://davidwalsh.name/mootools-show-hide/comment-page-1#comment-14568</link> <dc:creator>Neil</dc:creator> <pubDate>Wed, 16 Dec 2009 19:11:50 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=251#comment-14568</guid> <description>Hey Dave,Great tutorial, how can we make a div hide onload though?</description> <content:encoded><![CDATA[<p>Hey Dave,</p><p>Great tutorial, how can we make a div hide onload though?</p> ]]></content:encoded> </item> <item><title>By: Fancy FAQs with MooTools Sliders: Version&#160;2 &#124; Programming Blog</title><link>http://davidwalsh.name/mootools-show-hide/comment-page-1#comment-13359</link> <dc:creator>Fancy FAQs with MooTools Sliders: Version&#160;2 &#124; Programming Blog</dc:creator> <pubDate>Sat, 07 Nov 2009 16:10:33 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=251#comment-13359</guid> <description>[...] Implementing Basic and Fancy Show/Hide in MooTools&#160;1.2 [...]</description> <content:encoded><![CDATA[<p>[...] Implementing Basic and Fancy Show/Hide in MooTools&nbsp;1.2 [...]</p> ]]></content:encoded> </item> <item><title>By: Eric Lee</title><link>http://davidwalsh.name/mootools-show-hide/comment-page-1#comment-11615</link> <dc:creator>Eric Lee</dc:creator> <pubDate>Mon, 31 Aug 2009 15:16:29 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=251#comment-11615</guid> <description>And, oops, the &quot;cotp&#95;desc&quot; should really be &quot;theDiv&quot; on the second line of script.</description> <content:encoded><![CDATA[<p>And, oops, the &#8220;cotp&#95;desc&#8221; should really be &#8220;theDiv&#8221; on the second line of script.</p> ]]></content:encoded> </item> <item><title>By: Eric Lee</title><link>http://davidwalsh.name/mootools-show-hide/comment-page-1#comment-11609</link> <dc:creator>Eric Lee</dc:creator> <pubDate>Mon, 31 Aug 2009 12:00:45 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=251#comment-11609</guid> <description>Is there a way to put a duration on the fading in and out of the display element?  The fade() only works on opacity it seems, and so when an item is faded out, it still shows the block height element.  I&#039;d like to be able to fade out (in a &quot;fancy&quot; way) an element&#039;s display from &quot;block&quot; to &quot;none&quot;.  Is that possible?  So far in my tests it seems to only want to act as if there is no duration://set the div to be invisible on load
$(&#039;theDiv&#039;).setStyle(&#039;display&#039;,&#039;none&#039;);var myEffect = new Fx.Tween($(&#039;cotp&#95;desc&#039;), {
property: &#039;display&#039;,
duration: 2000, //set the duration of the fade
transition: Fx.Transitions.Quad.easeIn
});$(&#039;hideDesc&#039;).addEvent(&#039;click&#039;, function(event) {
myEffect.start(&#039;none&#039;);
});$(&#039;showDesc&#039;).addEvent(&#039;click&#039;,function(event){
myEffect.start(&#039;block&#039;);
});HTML:&lt;a href=&quot;#&quot; id=&quot;showDesc&quot;&gt;Show Text&lt;/a&gt; &#124; &lt;a href=&quot;#&quot; id=&quot;hideDesc&quot;&gt;Hide Text&lt;/a&gt;)&lt;br /&gt;&lt;div id=&quot;theDiv&quot;&gt;
Some text
&lt;/div&gt; </description> <content:encoded><![CDATA[<p>Is there a way to put a duration on the fading in and out of the display element?  The fade() only works on opacity it seems, and so when an item is faded out, it still shows the block height element.  I&#8217;d like to be able to fade out (in a &#8220;fancy&#8221; way) an element&#8217;s display from &#8220;block&#8221; to &#8220;none&#8221;.  Is that possible?  So far in my tests it seems to only want to act as if there is no duration:</p><p>//set the div to be invisible on load<br
/> $(&#8216;theDiv&#8217;).setStyle(&#8216;display&#8217;,'none&#8217;);</p><p>var myEffect = new Fx.Tween($(&#8216;cotp&#95;desc&#8217;), {<br
/> property: &#8216;display&#8217;,<br
/> duration: 2000, //set the duration of the fade<br
/> transition: Fx.Transitions.Quad.easeIn<br
/> });</p><p>$(&#8216;hideDesc&#8217;).addEvent(&#8216;click&#8217;, function(event) {<br
/> myEffect.start(&#8216;none&#8217;);<br
/> });</p><p> $(&#8217;showDesc&#8217;).addEvent(&#8216;click&#8217;,function(event){<br
/> myEffect.start(&#8216;block&#8217;);<br
/> });</p><p>HTML:</p><p>&lt;a href=&#8221;#&#8221; id=&#8221;showDesc&#8221;&gt;Show Text&lt;/a&gt; | &lt;a href=&#8221;#&#8221; id=&#8221;hideDesc&#8221;&gt;Hide Text&lt;/a&gt;)&lt;br /&gt;</p><p>&lt;div id=&#8221;theDiv&#8221;&gt;<br
/> Some text<br
/> &lt;/div&gt;</p> ]]></content:encoded> </item> <item><title>By: Ashley</title><link>http://davidwalsh.name/mootools-show-hide/comment-page-1#comment-8133</link> <dc:creator>Ashley</dc:creator> <pubDate>Tue, 10 Mar 2009 00:14:53 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=251#comment-8133</guid> <description>You&#039;ve got the fancy-shmancy blog with moo scattered about...you write one!  :)Besides, I&#039;m just a designer that lets you guys do all the hard work.  LOLSo, check back tomorrow?  OK, fine, Wednesday...sheesh.</description> <content:encoded><![CDATA[<p>You&#8217;ve got the fancy-shmancy blog with moo scattered about&#8230;you write one!  :)</p><p>Besides, I&#8217;m just a designer that lets you guys do all the hard work.  LOL</p><p>So, check back tomorrow?  OK, fine, Wednesday&#8230;sheesh.</p> ]]></content:encoded> </item> <item><title>By: Liam</title><link>http://davidwalsh.name/mootools-show-hide/comment-page-1#comment-8132</link> <dc:creator>Liam</dc:creator> <pubDate>Mon, 09 Mar 2009 23:00:45 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=251#comment-8132</guid> <description>I have done a few in Jquery too, Just having issues in mootools for some reason.</description> <content:encoded><![CDATA[<p>I have done a few in Jquery too, Just having issues in mootools for some reason.</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/mootools-show-hide/comment-page-1#comment-8131</link> <dc:creator>David Walsh</dc:creator> <pubDate>Mon, 09 Mar 2009 22:26:07 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=251#comment-8131</guid> <description>&lt;p&gt;@Ashley -- write one!  :)  It wouldn&#039;t be that difficult.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@Ashley &#8212; write one!  :)  It wouldn&#8217;t be that difficult.</p> ]]></content:encoded> </item> <item><title>By: Ashley</title><link>http://davidwalsh.name/mootools-show-hide/comment-page-1#comment-8130</link> <dc:creator>Ashley</dc:creator> <pubDate>Mon, 09 Mar 2009 21:09:47 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=251#comment-8130</guid> <description>I&#039;ve been looking for the same thing Liam mentioned and cannot find a slide combined with a fade.  Here&#039;s a perfect example:http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htmOf course, it&#039;s written using JQuery.  Has anyone seen a Moo version?</description> <content:encoded><![CDATA[<p>I&#8217;ve been looking for the same thing Liam mentioned and cannot find a slide combined with a fade.  Here&#8217;s a perfect example:</p><p><a
href="http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm" rel="nofollow">http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm</a></p><p>Of course, it&#8217;s written using JQuery.  Has anyone seen a Moo version?</p> ]]></content:encoded> </item> <item><title>By: Jaime Schultz</title><link>http://davidwalsh.name/mootools-show-hide/comment-page-1#comment-7541</link> <dc:creator>Jaime Schultz</dc:creator> <pubDate>Wed, 28 Jan 2009 22:29:50 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=251#comment-7541</guid> <description>Hi David,
I just read your blog about Implementing Basic and Fancy Show/Hide in MooTools 1.2. I have a question, since yours seems to work in all browsers, what could be the reason onChange hide/shows work in IE and not Firefox or safari?</description> <content:encoded><![CDATA[<p>Hi David,<br
/> I just read your blog about Implementing Basic and Fancy Show/Hide in MooTools 1.2. I have a question, since yours seems to work in all browsers, what could be the reason onChange hide/shows work in IE and not Firefox or safari?</p> ]]></content:encoded> </item> <item><title>By: liam dilley</title><link>http://davidwalsh.name/mootools-show-hide/comment-page-1#comment-4599</link> <dc:creator>liam dilley</dc:creator> <pubDate>Tue, 13 Jan 2009 22:32:47 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=251#comment-4599</guid> <description>Agreed, I am trying and have been trying to do a hidden div to show toggle for a bit and it is giving me a headache.
window.addEvent(&#039;domready&#039;, function() {
$(&#039;login-form&#039;).setStyle(&#039;height&#039;,&#039;auto&#039;);
var myVerticalSlide = new Fx.Slide(&#039;login-form&#039;).hide();
$(&#039;toggle-login&#039;).addEvent(&#039;click&#039;, function(e){
myVerticalSlide.toggle();
e.stop();
});
});The above is for a slide toggle and I am trying to do the same with a fade.</description> <content:encoded><![CDATA[<p>Agreed, I am trying and have been trying to do a hidden div to show toggle for a bit and it is giving me a headache.<br
/> window.addEvent(&#8216;domready&#8217;, function() {<br
/> $(&#8216;login-form&#8217;).setStyle(&#8216;height&#8217;,'auto&#8217;);<br
/> var myVerticalSlide = new Fx.Slide(&#8216;login-form&#8217;).hide();<br
/> $(&#8216;toggle-login&#8217;).addEvent(&#8216;click&#8217;, function(e){<br
/> myVerticalSlide.toggle();<br
/> e.stop();<br
/> });<br
/> });</p><p>The above is for a slide toggle and I am trying to do the same with a fade.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 1/19 queries in 0.028 seconds using disk

Served from: davidwalsh.name @ 2010-03-11 12:53:54 -->