<?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: Javascript animated collapsible panels without any frameworks</title>
	<atom:link href="http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/</link>
	<description>Internet Applications - Flash, Flex, Silverlight, JavaFX</description>
	<lastBuildDate>Fri, 02 Dec 2011 23:04:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: rjcuk</title>
		<link>http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/comment-page-1/#comment-835</link>
		<dc:creator>rjcuk</dc:creator>
		<pubDate>Sat, 05 Mar 2011 15:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.richnetapps.com/?p=389#comment-835</guid>
		<description>Exactly what I was looking for, thanks a million :D</description>
		<content:encoded><![CDATA[<p>Exactly what I was looking for, thanks a million <img src='http://www.richnetapps.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iThom</title>
		<link>http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/comment-page-1/#comment-828</link>
		<dc:creator>iThom</dc:creator>
		<pubDate>Sat, 19 Feb 2011 10:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.richnetapps.com/?p=389#comment-828</guid>
		<description>Thanks!
I&#039;ve used it in my mobile version of school timetable on http://statusowo.net/ithom/Plan/iphone.html
But the first panels aren&#039;t expanding smooth.</description>
		<content:encoded><![CDATA[<p>Thanks!<br />
I&#8217;ve used it in my mobile version of school timetable on <a href="http://statusowo.net/ithom/Plan/iphone.html" rel="nofollow">http://statusowo.net/ithom/Plan/iphone.html</a><br />
But the first panels aren&#8217;t expanding smooth.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deven Chism</title>
		<link>http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/comment-page-1/#comment-826</link>
		<dc:creator>Deven Chism</dc:creator>
		<pubDate>Wed, 09 Feb 2011 16:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.richnetapps.com/?p=389#comment-826</guid>
		<description>Hi there,

Does anyone have any suggestions for coding PHP animated collapse?  I&#039;m using Wordpress for the first time and I find myself completely incapable of figuring this out on my own.  Any help or guidance would be appreciated.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Does anyone have any suggestions for coding PHP animated collapse?  I&#8217;m using Wordpress for the first time and I find myself completely incapable of figuring this out on my own.  Any help or guidance would be appreciated.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wiethoofd</title>
		<link>http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/comment-page-1/#comment-815</link>
		<dc:creator>Wiethoofd</dc:creator>
		<pubDate>Thu, 06 Jan 2011 22:16:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.richnetapps.com/?p=389#comment-815</guid>
		<description>A friend of mine got it working using 3 regular expresion functions picked from http://www.openjs.com/scripts/dom/class_manipulation.php to keep the script working even when you have multiple classes in the &#039;panel&#039; or &#039;panelclosed&#039; div class.

Add the following functions:
&lt;code&gt;function hasClass(ele,cls){return ele.className.match(new RegExp(&#039;(\\s&#124;^)&#039;+cls+&#039;(\\s&#124;$)&#039;));}
function addClass(ele,cls){if(!this.hasClass(ele,cls))ele.className+=&#039; &#039;+cls;}
function removeClass(ele,cls){if(hasClass(ele,cls)){var reg=new RegExp(&#039;(\\s&#124;^)&#039;+cls+&#039;(\\s&#124;$)&#039;);ele.className=ele.className.replace(reg,&#039; &#039;);}}&lt;/code&gt;
Replace line 22 with:
&lt;code&gt;if (!hasClass(el.parentNode, PANEL_NORMAL_CLASS) &amp;&amp; !hasClass(el.parentNode, PANEL_COLLAPSED_CLASS))&lt;/code&gt;
Replace line 43 with:
&lt;code&gt;var collapsed = hasClass(target, PANEL_COLLAPSED_CLASS);&lt;/code&gt;
Replace line 61 with:
&lt;code&gt;if(hasClass(elements[i], PANEL_CONTENT_CLASS))&lt;/code&gt;
Replace lines 102 with:
&lt;code&gt;// set class for the panel
removeClass(panelContent.parentNode, !(direction &lt; 0) ? PANEL_COLLAPSED_CLASS : PANEL_NORMAL_CLASS);
addClass(panelContent.parentNode, (direction &lt; 0) ? PANEL_COLLAPSED_CLASS : PANEL_NORMAL_CLASS);&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>A friend of mine got it working using 3 regular expresion functions picked from <a href="http://www.openjs.com/scripts/dom/class_manipulation.php" rel="nofollow">http://www.openjs.com/scripts/dom/class_manipulation.php</a> to keep the script working even when you have multiple classes in the &#8216;panel&#8217; or &#8216;panelclosed&#8217; div class.</p>
<p>Add the following functions:<br />
<code>function hasClass(ele,cls){return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));}<br />
function addClass(ele,cls){if(!this.hasClass(ele,cls))ele.className+=' '+cls;}<br />
function removeClass(ele,cls){if(hasClass(ele,cls)){var reg=new RegExp('(\\s|^)'+cls+'(\\s|$)');ele.className=ele.className.replace(reg,' ');}}</code><br />
Replace line 22 with:<br />
<code>if (!hasClass(el.parentNode, PANEL_NORMAL_CLASS) &amp;&amp; !hasClass(el.parentNode, PANEL_COLLAPSED_CLASS))</code><br />
Replace line 43 with:<br />
<code>var collapsed = hasClass(target, PANEL_COLLAPSED_CLASS);</code><br />
Replace line 61 with:<br />
<code>if(hasClass(elements[i], PANEL_CONTENT_CLASS))</code><br />
Replace lines 102 with:<br />
<code>// set class for the panel<br />
removeClass(panelContent.parentNode, !(direction &lt; 0) ? PANEL_COLLAPSED_CLASS : PANEL_NORMAL_CLASS);<br />
addClass(panelContent.parentNode, (direction &lt; 0) ? PANEL_COLLAPSED_CLASS : PANEL_NORMAL_CLASS);</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wiethoofd</title>
		<link>http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/comment-page-1/#comment-814</link>
		<dc:creator>Wiethoofd</dc:creator>
		<pubDate>Wed, 05 Jan 2011 12:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.richnetapps.com/?p=389#comment-814</guid>
		<description>I just found out your collapse JS doesn&#039;t fully work when you have another classname in the &#039;panel&#039; or &#039;panelcollapsed&#039; div.

You will then have to add the extra class(es) in the PANEL_NORMAL_CLASS and _COLLAPSED_ in the javascript which is quite anoying when you have various div classes with the panel or panelcollapsed class in them.</description>
		<content:encoded><![CDATA[<p>I just found out your collapse JS doesn&#8217;t fully work when you have another classname in the &#8216;panel&#8217; or &#8216;panelcollapsed&#8217; div.</p>
<p>You will then have to add the extra class(es) in the PANEL_NORMAL_CLASS and _COLLAPSED_ in the javascript which is quite anoying when you have various div classes with the panel or panelcollapsed class in them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dmdsoft.com</title>
		<link>http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/comment-page-1/#comment-778</link>
		<dc:creator>dmdsoft.com</dc:creator>
		<pubDate>Thu, 14 Oct 2010 01:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.richnetapps.com/?p=389#comment-778</guid>
		<description>Thank you so much, 
It&#039;s very useful,
but i have some problem..
it&#039;s how to resize it..
Thanks.</description>
		<content:encoded><![CDATA[<p>Thank you so much,<br />
It&#8217;s very useful,<br />
but i have some problem..<br />
it&#8217;s how to resize it..<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: custy1234</title>
		<link>http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/comment-page-1/#comment-726</link>
		<dc:creator>custy1234</dc:creator>
		<pubDate>Thu, 08 Jul 2010 21:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.richnetapps.com/?p=389#comment-726</guid>
		<description>Hey there! thanks for this awesome script. I have installed it on my website without any problems :) I was just wondering if it was possible to make the script so that it dosent remember the opened panels when the user revisits the page. I want to remove the whole &quot;cookies&quot; and &quot;remembering&quot; part of the script so when a user revisits or reloads the page, the panels would be collapsed. I am only asking this since I am using this awesome script as a FAQ page. Thanks for your awesome script!</description>
		<content:encoded><![CDATA[<p>Hey there! thanks for this awesome script. I have installed it on my website without any problems <img src='http://www.richnetapps.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I was just wondering if it was possible to make the script so that it dosent remember the opened panels when the user revisits the page. I want to remove the whole &#8220;cookies&#8221; and &#8220;remembering&#8221; part of the script so when a user revisits or reloads the page, the panels would be collapsed. I am only asking this since I am using this awesome script as a FAQ page. Thanks for your awesome script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armand Niculescu</title>
		<link>http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/comment-page-1/#comment-698</link>
		<dc:creator>Armand Niculescu</dc:creator>
		<pubDate>Fri, 21 May 2010 08:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.richnetapps.com/?p=389#comment-698</guid>
		<description>Bert,
I modified the code and added Expand All / Collapse All. Just download the zip file again. If you already integrated the javascript in your project, just do a diff to see what&#039;s new or add the code
&lt;code&gt;else panelsStatus[name] = (el.parentNode.className == PANEL_NORMAL_CLASS) ? &quot;true&quot; : &quot;false&quot;;&lt;/code&gt;
at line 35
and the two new functions &lt;code&gt;expandAll()&lt;/code&gt; and &lt;code&gt;collapseAll()&lt;/code&gt; - they&#039;re are in the downloadable archive but not in the example code above.</description>
		<content:encoded><![CDATA[<p>Bert,<br />
I modified the code and added Expand All / Collapse All. Just download the zip file again. If you already integrated the javascript in your project, just do a diff to see what&#8217;s new or add the code<br />
<code>else panelsStatus[name] = (el.parentNode.className == PANEL_NORMAL_CLASS) ? "true" : "false";</code><br />
at line 35<br />
and the two new functions <code>expandAll()</code> and <code>collapseAll()</code> &#8211; they&#8217;re are in the downloadable archive but not in the example code above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bert</title>
		<link>http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/comment-page-1/#comment-696</link>
		<dc:creator>Bert</dc:creator>
		<pubDate>Thu, 20 May 2010 21:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.richnetapps.com/?p=389#comment-696</guid>
		<description>Armand thanks for the simple plug and play. I may have missed this but bare with me.
I have a page with around 10 collapsible panels I would like to add an &quot;Expand All&quot; &quot;Close All&quot; link, button or img
so my users can do this with ease.
I have even considered, as you may have seen, &quot;Close all but this&quot; but that may be a little more work than time will allow.

Any thoughts?

Thanks again,
Bert Hood</description>
		<content:encoded><![CDATA[<p>Armand thanks for the simple plug and play. I may have missed this but bare with me.<br />
I have a page with around 10 collapsible panels I would like to add an &#8220;Expand All&#8221; &#8220;Close All&#8221; link, button or img<br />
so my users can do this with ease.<br />
I have even considered, as you may have seen, &#8220;Close all but this&#8221; but that may be a little more work than time will allow.</p>
<p>Any thoughts?</p>
<p>Thanks again,<br />
Bert Hood</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ProDesignTools</title>
		<link>http://www.richnetapps.com/javascript-animated-collapsible-panels-without-frameworks/comment-page-1/#comment-689</link>
		<dc:creator>ProDesignTools</dc:creator>
		<pubDate>Sun, 02 May 2010 15:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.richnetapps.com/?p=389#comment-689</guid>
		<description>This is really fantastic, by far the best we found - thank you so much!

You can see it in live production here, it works really well:
http://prodesigntools.com/products/adobe-cs5-system-requirements.html

The only (small) addition we made was to change the mouse cursor when hovering over the header to enhance clickability, a la:

.panel h2:hover, .panelcollapsed h2:hover
{
        background-color: #A9BCEF;
        cursor:pointer;
}

(The new addition to the code is the last line, &quot;cursor:pointer;&quot;)</description>
		<content:encoded><![CDATA[<p>This is really fantastic, by far the best we found &#8211; thank you so much!</p>
<p>You can see it in live production here, it works really well:<br />
<a href="http://prodesigntools.com/products/adobe-cs5-system-requirements.html" rel="nofollow">http://prodesigntools.com/products/adobe-cs5-system-requirements.html</a></p>
<p>The only (small) addition we made was to change the mouse cursor when hovering over the header to enhance clickability, a la:</p>
<p>.panel h2:hover, .panelcollapsed h2:hover<br />
{<br />
        background-color: #A9BCEF;<br />
        cursor:pointer;<br />
}</p>
<p>(The new addition to the code is the last line, &#8220;cursor:pointer;&#8221;)</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 (Feed is rejected)
Page Caching using disk: enhanced

Served from: www.richnetapps.com @ 2012-02-07 15:14:44 -->
