<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Create Twitter-Style Dropdowns Using&#160;MooTools</title> <atom:link href="http://davidwalsh.name/twitter-dropdown/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/twitter-dropdown</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 02:40:12 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: SkyGuy</title><link>http://davidwalsh.name/twitter-dropdown/comment-page-1#comment-25895</link> <dc:creator>SkyGuy</dc:creator> <pubDate>Mon, 11 Jul 2011 02:28:55 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4929#comment-25895</guid> <description>I tried copying all the code to make sure everything worked, so that after I can implement it in my own style, But for some reason mine won&#039;t close when you click outside the menu.  Although If I add a div like  around the menu, then I can close the menu by clicking inside that div, but not by clicking anywhere on the body.  Do you have any idea why that is?</description> <content:encoded><![CDATA[<p>I tried copying all the code to make sure everything worked, so that after I can implement it in my own style, But for some reason mine won&#8217;t close when you click outside the menu.  Although If I add a div like  around the menu, then I can close the menu by clicking inside that div, but not by clicking anywhere on the body.  Do you have any idea why that is?</p> ]]></content:encoded> </item> <item><title>By: wabugi</title><link>http://davidwalsh.name/twitter-dropdown/comment-page-1#comment-23468</link> <dc:creator>wabugi</dc:creator> <pubDate>Tue, 12 Apr 2011 10:41:30 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4929#comment-23468</guid> <description>Alright, here is the solution: http://jsfiddle.net/PkbeZ/With a little help from wowenkho (http://www.mooforum.net/member/wowenkho/).</description> <content:encoded><![CDATA[<p>Alright, here is the solution: <a
href="http://jsfiddle.net/PkbeZ/" rel="nofollow">http://jsfiddle.net/PkbeZ/</a></p><p>With a little help from wowenkho (<a
href="http://www.mooforum.net/member/wowenkho/" rel="nofollow">http://www.mooforum.net/member/wowenkho/</a>).</p> ]]></content:encoded> </item> <item><title>By: wabugi</title><link>http://davidwalsh.name/twitter-dropdown/comment-page-1#comment-23332</link> <dc:creator>wabugi</dc:creator> <pubDate>Thu, 31 Mar 2011 16:01:07 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4929#comment-23332</guid> <description>Your solution works great as long as there is only 1 single dropdown involved. In my case I need to display 3 dropdowns.That happens: I open menu1 with a click. When clicking on menu2, menu 1 closes. I have to click menu2 again to open it. It is absolutely logical, but sadly not the behavior I was looking for ^^Any other ideas?</description> <content:encoded><![CDATA[<p>Your solution works great as long as there is only 1 single dropdown involved. In my case I need to display 3 dropdowns.</p><p>That happens: I open menu1 with a click. When clicking on menu2, menu 1 closes. I have to click menu2 again to open it. It is absolutely logical, but sadly not the behavior I was looking for ^^</p><p>Any other ideas?</p> ]]></content:encoded> </item> <item><title>By: bobthebob</title><link>http://davidwalsh.name/twitter-dropdown/comment-page-1#comment-23023</link> <dc:creator>bobthebob</dc:creator> <pubDate>Fri, 11 Mar 2011 04:47:32 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4929#comment-23023</guid> <description>Again, a great tut from David. what a nice resource website it is!I would also like to see a mouseover event. When changing from click to mouceover or mouseenter, it works to open the menu.
But i can not manage to have it close on mouseout.any idea?</description> <content:encoded><![CDATA[<p>Again, a great tut from David. what a nice resource website it is!</p><p>I would also like to see a mouseover event. When changing from click to mouceover or mouseenter, it works to open the menu.<br
/> But i can not manage to have it close on mouseout.</p><p>any idea?</p> ]]></content:encoded> </item> <item><title>By: wabugi</title><link>http://davidwalsh.name/twitter-dropdown/comment-page-1#comment-22711</link> <dc:creator>wabugi</dc:creator> <pubDate>Sat, 12 Feb 2011 21:27:16 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4929#comment-22711</guid> <description>I know that one year has passed since this guide has been posted, but I will use this drop down technique on the next update of my website.This drop down still works fantastic with mootools 1.3.Thank you for sharing this! You made my day :)</description> <content:encoded><![CDATA[<p>I know that one year has passed since this guide has been posted, but I will use this drop down technique on the next update of my website.</p><p>This drop down still works fantastic with mootools 1.3.</p><p>Thank you for sharing this! You made my day :)</p> ]]></content:encoded> </item> <item><title>By: m4co</title><link>http://davidwalsh.name/twitter-dropdown/comment-page-1#comment-16601</link> <dc:creator>m4co</dc:creator> <pubDate>Tue, 23 Mar 2010 09:06:15 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4929#comment-16601</guid> <description>How would you do this with &#039;mouseover&#039; instead of click?Mouseover seems complicated.. when the user goes to the child  the list  will just disappear! obviously because the you just left the &#039;mouseover&#039; area</description> <content:encoded><![CDATA[<p>How would you do this with &#8216;mouseover&#8217; instead of click?</p><p>Mouseover seems complicated.. when the user goes to the child  the list  will just disappear! obviously because the you just left the &#8216;mouseover&#8217; area</p> ]]></content:encoded> </item> <item><title>By: Michael de Silva</title><link>http://davidwalsh.name/twitter-dropdown/comment-page-1#comment-16517</link> <dc:creator>Michael de Silva</dc:creator> <pubDate>Wed, 17 Mar 2010 08:28:20 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4929#comment-16517</guid> <description>Seems I got it working, probably not the best way to go about it.  Created a global variable called &#039;tmp&#039; and had it initialized to false.[code]
/* function to show menu when clicked */
dropdown.addEvent(&#039;click&#039;, function(e) {
if(e) e.stop();
if(tmp == false){
showMenu();
tmp = true;
}else{
hideMenu();
tmp = false;
}
});
[/code]This does the trick though; menus are collapsible now.  To keep it all in sync, this needs to be added too:/* hide when clicked outside */
$(document.body).addEvent(&#039;click&#039;,function(e) {
if(showingParent &amp;&amp; !e.target &#124;&#124; !$(e.target).getParents().contains(showingParent)) {
hideMenu();
tmp = false;
}
});</description> <content:encoded><![CDATA[<p>Seems I got it working, probably not the best way to go about it.  Created a global variable called &#8216;tmp&#8217; and had it initialized to false.</p><p>[code]<br
/> /* function to show menu when clicked */<br
/> dropdown.addEvent('click', function(e) {<br
/> if(e) e.stop();<br
/> if(tmp == false){<br
/> showMenu();<br
/> tmp = true;<br
/> }else{<br
/> hideMenu();<br
/> tmp = false;<br
/> }<br
/> });<br
/> [/code]</p><p>This does the trick though; menus are collapsible now.  To keep it all in sync, this needs to be added too:</p><p> /* hide when clicked outside */<br
/> $(document.body).addEvent(&#8216;click&#8217;,function(e) {<br
/> if(showingParent &amp;&amp; !e.target || !$(e.target).getParents().contains(showingParent)) {<br
/> hideMenu();<br
/> tmp = false;<br
/> }<br
/> });</p> ]]></content:encoded> </item> <item><title>By: Michael de Silva</title><link>http://davidwalsh.name/twitter-dropdown/comment-page-1#comment-16516</link> <dc:creator>Michael de Silva</dc:creator> <pubDate>Wed, 17 Mar 2010 08:16:21 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4929#comment-16516</guid> <description>@David Walsh: I&#039;d like to see how we can get the menus to go back up when they are clicked again.  I tried to use &#039;dropdown.toggle();&#039; but the event would cause the page to go to /demo.Hmm.....</description> <content:encoded><![CDATA[<p>@David Walsh: I&#8217;d like to see how we can get the menus to go back up when they are clicked again.  I tried to use &#8216;dropdown.toggle();&#8217; but the event would cause the page to go to /demo.</p><p>Hmm&#8230;..</p> ]]></content:encoded> </item> <item><title>By: Dwight Blubaugh</title><link>http://davidwalsh.name/twitter-dropdown/comment-page-1#comment-16498</link> <dc:creator>Dwight Blubaugh</dc:creator> <pubDate>Tue, 16 Mar 2010 14:24:45 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4929#comment-16498</guid> <description>@David Walsh:  Emailed it to you.</description> <content:encoded><![CDATA[<p>@David Walsh:  Emailed it to you.</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/twitter-dropdown/comment-page-1#comment-16497</link> <dc:creator>David Walsh</dc:creator> <pubDate>Tue, 16 Mar 2010 14:15:58 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4929#comment-16497</guid> <description>@Nitin, @Dwight Blubaugh:  Can you provide a screenshot?</description> <content:encoded><![CDATA[<p>@Nitin, @Dwight Blubaugh:  Can you provide a screenshot?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/19 queries in 0.019 seconds using disk: basic
Object Caching 866/871 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 01:25:57 -->
