<?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: How to build an expandable sitemap with jQuery and CSS</title>
	<atom:link href="http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/</link>
	<description>Portfolio and web design blog</description>
	<lastBuildDate>Wed, 03 Mar 2010 00:30:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: 10款javascript treeview和sitemap插件 &#124; 我爱WEB &#8211; 专注于WEB开发与前端技术</title>
		<link>http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/comment-page-1/#comment-317</link>
		<dc:creator>10款javascript treeview和sitemap插件 &#124; 我爱WEB &#8211; 专注于WEB开发与前端技术</dc:creator>
		<pubDate>Wed, 03 Mar 2010 00:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottdarby.com/?p=83#comment-317</guid>
		<description>[...] Build an expandable sitemap with jQuery and CSS &#124; Demo  In this tutorial I will use the power of jQuery to transform an unordered list of hierarchically structured pages into an expandable, tree-view navigation system – the perfect way to tame those huge sitemaps produced by your CMS. [...]</description>
		<content:encoded><![CDATA[<p>[...] Build an expandable sitemap with jQuery and CSS | Demo  In this tutorial I will use the power of jQuery to transform an unordered list of hierarchically structured pages into an expandable, tree-view navigation system – the perfect way to tame those huge sitemaps produced by your CMS. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tuankaka</title>
		<link>http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/comment-page-1/#comment-309</link>
		<dc:creator>tuankaka</dc:creator>
		<pubDate>Tue, 26 Jan 2010 07:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottdarby.com/?p=83#comment-309</guid>
		<description>I have solved my problem applying the way Allan provided and also modified to prevent click events of the subnodes that fires the click event of the parents. I put the modified script here, hope someone find helpful!

//The plugin
jQuery.fn.quickTree = function() {
	return this.each(function(){
	
		//set variables
		var $tree = $(this);
		var $roots = $tree.find(&#039;li&#039;);
		
		//set last list-item as variable (to allow different background graphic to be applied)
		$tree.find(&#039;li:last-child&#039;).addClass(&#039;last&#039;);
		
		//add class to allow styling
		$tree.addClass(&#039;tree&#039;);
		
		//hide all lists inside of main list by default
		$tree.find(&#039;ul&#039;).hide();
		
		//iterate through all list items
		$roots.each(function(){
		
			//if list-item contains a child list
			if ($(this).children(&#039;ul&#039;).length &gt; 0) {
			
				//add expand/contract control
				$(this).addClass(&#039;root&#039;).prepend(&#039;&#039;);
				
				}
				$(this).click(function(evt){        	   
		    		evt.stopPropagation();
		    	}); 
		
		}); //end .each
		
		//handle clicking on expand/contract control
		$tree.find(&#039;span.expand&#039;).toggle(
			//if it’s clicked once, find all child lists and expand
			function(){
			$(this).toggleClass(&#039;contract&#039;).nextAll(&#039;ul&#039;).slideDown();
			},		
			//if it’s clicked again, find all child lists and contract
			function(){
			$(this).toggleClass(&#039;contract&#039;).nextAll(&#039;ul&#039;).slideUp();
			}
		);
	});
};</description>
		<content:encoded><![CDATA[<p>I have solved my problem applying the way Allan provided and also modified to prevent click events of the subnodes that fires the click event of the parents. I put the modified script here, hope someone find helpful!</p>
<p>//The plugin<br />
jQuery.fn.quickTree = function() {<br />
	return this.each(function(){</p>
<p>		//set variables<br />
		var $tree = $(this);<br />
		var $roots = $tree.find(&#8216;li&#8217;);</p>
<p>		//set last list-item as variable (to allow different background graphic to be applied)<br />
		$tree.find(&#8216;li:last-child&#8217;).addClass(&#8216;last&#8217;);</p>
<p>		//add class to allow styling<br />
		$tree.addClass(&#8216;tree&#8217;);</p>
<p>		//hide all lists inside of main list by default<br />
		$tree.find(&#8216;ul&#8217;).hide();</p>
<p>		//iterate through all list items<br />
		$roots.each(function(){</p>
<p>			//if list-item contains a child list<br />
			if ($(this).children(&#8216;ul&#8217;).length &gt; 0) {</p>
<p>				//add expand/contract control<br />
				$(this).addClass(&#8216;root&#8217;).prepend(&#8221;);</p>
<p>				}<br />
				$(this).click(function(evt){<br />
		    		evt.stopPropagation();<br />
		    	}); </p>
<p>		}); //end .each</p>
<p>		//handle clicking on expand/contract control<br />
		$tree.find(&#8217;span.expand&#8217;).toggle(<br />
			//if it’s clicked once, find all child lists and expand<br />
			function(){<br />
			$(this).toggleClass(&#8216;contract&#8217;).nextAll(&#8216;ul&#8217;).slideDown();<br />
			},<br />
			//if it’s clicked again, find all child lists and contract<br />
			function(){<br />
			$(this).toggleClass(&#8216;contract&#8217;).nextAll(&#8216;ul&#8217;).slideUp();<br />
			}<br />
		);<br />
	});<br />
};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tuankaka</title>
		<link>http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/comment-page-1/#comment-307</link>
		<dc:creator>tuankaka</dc:creator>
		<pubDate>Tue, 26 Jan 2010 03:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottdarby.com/?p=83#comment-307</guid>
		<description>Hi All there!

I follow the way given by Scott and it works perfectly but when i create another treeview in the same page, one of the treeviews does not work the way i intended, it expands and then collapses immediately. How do i prevent this problem? Thank you for any help!</description>
		<content:encoded><![CDATA[<p>Hi All there!</p>
<p>I follow the way given by Scott and it works perfectly but when i create another treeview in the same page, one of the treeviews does not work the way i intended, it expands and then collapses immediately. How do i prevent this problem? Thank you for any help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vicky</title>
		<link>http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/comment-page-1/#comment-263</link>
		<dc:creator>Vicky</dc:creator>
		<pubDate>Fri, 04 Dec 2009 21:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottdarby.com/?p=83#comment-263</guid>
		<description>Brilliant script, but I find the same problem as Andrew.  It clashes with my css style sheet as my body text is set to 0.72em and it causes the indentations to jump (to the left in my case).  Has anyone discovered a way around this?</description>
		<content:encoded><![CDATA[<p>Brilliant script, but I find the same problem as Andrew.  It clashes with my css style sheet as my body text is set to 0.72em and it causes the indentations to jump (to the left in my case).  Has anyone discovered a way around this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javascript ve css eklentileri &#124; FaydalıWeb &#124; Internetin Faydalı Yüzü</title>
		<link>http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/comment-page-1/#comment-258</link>
		<dc:creator>Javascript ve css eklentileri &#124; FaydalıWeb &#124; Internetin Faydalı Yüzü</dc:creator>
		<pubDate>Wed, 25 Nov 2009 15:56:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottdarby.com/?p=83#comment-258</guid>
		<description>[...] Build an expandable sitemap with jQuery and CSS &#124; Demo [...]</description>
		<content:encoded><![CDATA[<p>[...] Build an expandable sitemap with jQuery and CSS | Demo [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/comment-page-1/#comment-248</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 12 Nov 2009 04:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottdarby.com/?p=83#comment-248</guid>
		<description>Cool script. Changing the text size smaller (ex 12px) makes the +&#039;s indent to the right. Any ideas how to avoid this?</description>
		<content:encoded><![CDATA[<p>Cool script. Changing the text size smaller (ex 12px) makes the +&#8217;s indent to the right. Any ideas how to avoid this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cindi</title>
		<link>http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/comment-page-1/#comment-236</link>
		<dc:creator>Cindi</dc:creator>
		<pubDate>Tue, 27 Oct 2009 11:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottdarby.com/?p=83#comment-236</guid>
		<description>Don&#039;t know enough about script yet to know any better.  If I add this script as offered will it mess up naviagation?  How do I target it toward just the right list?  Do I follow Allan&#039;s directions?  ...off to learn more on Lynda.com.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t know enough about script yet to know any better.  If I add this script as offered will it mess up naviagation?  How do I target it toward just the right list?  Do I follow Allan&#8217;s directions?  &#8230;off to learn more on Lynda.com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Zellweger</title>
		<link>http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/comment-page-1/#comment-201</link>
		<dc:creator>Michael Zellweger</dc:creator>
		<pubDate>Tue, 29 Sep 2009 03:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottdarby.com/?p=83#comment-201</guid>
		<description>Great script. Very clean with minimal impact on markup.

I would like a way to specify that the page open to expand to level (x). Is this a difficult mod?

Thanks.</description>
		<content:encoded><![CDATA[<p>Great script. Very clean with minimal impact on markup.</p>
<p>I would like a way to specify that the page open to expand to level (x). Is this a difficult mod?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo Matos</title>
		<link>http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/comment-page-1/#comment-194</link>
		<dc:creator>Paulo Matos</dc:creator>
		<pubDate>Thu, 24 Sep 2009 12:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottdarby.com/?p=83#comment-194</guid>
		<description>Hi Scott! Really nice piece of work! I found something odd on CSS, what&#039;s the purpose of _width ?</description>
		<content:encoded><![CDATA[<p>Hi Scott! Really nice piece of work! I found something odd on CSS, what&#8217;s the purpose of _width ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garve</title>
		<link>http://www.scottdarby.com/2009/05/how-to-build-an-expandable-sitemap-with-jquery-and-css/comment-page-1/#comment-190</link>
		<dc:creator>Garve</dc:creator>
		<pubDate>Tue, 22 Sep 2009 14:59:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottdarby.com/?p=83#comment-190</guid>
		<description>Thanks Scott, working beautifully for me.

It&#039;d be nice if users could click a link/button to expand the entire tree - any ideas?

eg

	$(&#039;.expandall&#039;).click(function () {
	do stuff
	});</description>
		<content:encoded><![CDATA[<p>Thanks Scott, working beautifully for me.</p>
<p>It&#8217;d be nice if users could click a link/button to expand the entire tree &#8211; any ideas?</p>
<p>eg</p>
<p>	$(&#8216;.expandall&#8217;).click(function () {<br />
	do stuff<br />
	});</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->