<?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 for the director.</title>
	<atom:link href="http://www.mikecentola.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikecentola.com/blog</link>
	<description>[ mike centola's blog ]</description>
	<lastBuildDate>Fri, 25 Nov 2011 13:53:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Comment on Saving state with the jQuery Accordion Menu by Manny</title>
		<link>http://www.mikecentola.com/blog/2009/05/31/saving-state-with-the-jquery-accordion-menu/comment-page-1/#comment-9643</link>
		<dc:creator>Manny</dc:creator>
		<pubDate>Fri, 25 Nov 2011 13:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikecentola.com/blog/?p=176#comment-9643</guid>
		<description>Useful and brilliant thank you for sharing this. save me today this did.</description>
		<content:encoded><![CDATA[<p>Useful and brilliant thank you for sharing this. save me today this did.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Saving state with the jQuery Accordion Menu by George</title>
		<link>http://www.mikecentola.com/blog/2009/05/31/saving-state-with-the-jquery-accordion-menu/comment-page-1/#comment-9636</link>
		<dc:creator>George</dc:creator>
		<pubDate>Wed, 23 Nov 2011 11:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikecentola.com/blog/?p=176#comment-9636</guid>
		<description>Thank you so much! you saved my day on implementing this in my website haha love you~</description>
		<content:encoded><![CDATA[<p>Thank you so much! you saved my day on implementing this in my website haha love you~</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Saving state with the jQuery Accordion Menu by Gautham Sarang</title>
		<link>http://www.mikecentola.com/blog/2009/05/31/saving-state-with-the-jquery-accordion-menu/comment-page-1/#comment-9511</link>
		<dc:creator>Gautham Sarang</dc:creator>
		<pubDate>Sun, 02 Oct 2011 16:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikecentola.com/blog/?p=176#comment-9511</guid>
		<description>I am very much new to Jquery. what I want is something very simple. Could anyone please tell me how to achieve this. 

I have two menu&#039;s which needs to be &#039;remembered&#039; by the browser. 
1. A menu that is hidden initially and shown when clicked on a link
2. I have put &#039;help-hints&#039; allover the site. There is a button to hide the hint icons. 

What I want is : Once that main menu is shown, it should stay shown while browsing through the pages. Same with the hint icons. When someone clicks on the link that hides/shows the hint icons, they should get hidden/displayed. 

The following is my code : 

JQuery :

 jQuery(&#039;.slideout&#039;).click(function() { 
   jQuery(&#039;.sf-green&#039;).slideToggle();
   jQuery(&#039;.slideout, .slidein&#039;).toggleClass(&#039;slidein slideout&#039;); 
   });
   
   
   jQuery(&#039;#infobutton&#039;).click(function(){
   jQuery(&#039;.info_on, .info_off&#039;).toggleClass(&#039;info_off info_on&#039;);
   jQuery(&#039;.hint, .hintoff&#039;).toggleClass(&#039;hintoff hint&#039;);
   });

HTML


	

		
			
				&lt;a&gt;Main Menu &lt;/a&gt;
			
		

		
		&lt;a&gt;Help &#187;&lt;/a&gt;
		&lt;!-- items--&gt;

	&lt;!-- infomenu--&gt;

&lt;!-- infomenuwrap--&gt;

Any help will be great! 

Thank you!</description>
		<content:encoded><![CDATA[<p>I am very much new to Jquery. what I want is something very simple. Could anyone please tell me how to achieve this. </p>
<p>I have two menu&#8217;s which needs to be &#8216;remembered&#8217; by the browser.<br />
1. A menu that is hidden initially and shown when clicked on a link<br />
2. I have put &#8216;help-hints&#8217; allover the site. There is a button to hide the hint icons. </p>
<p>What I want is : Once that main menu is shown, it should stay shown while browsing through the pages. Same with the hint icons. When someone clicks on the link that hides/shows the hint icons, they should get hidden/displayed. </p>
<p>The following is my code : </p>
<p>JQuery :</p>
<p> jQuery(&#8216;.slideout&#8217;).click(function() {<br />
   jQuery(&#8216;.sf-green&#8217;).slideToggle();<br />
   jQuery(&#8216;.slideout, .slidein&#8217;).toggleClass(&#8216;slidein slideout&#8217;);<br />
   });</p>
<p>   jQuery(&#8216;#infobutton&#8217;).click(function(){<br />
   jQuery(&#8216;.info_on, .info_off&#8217;).toggleClass(&#8216;info_off info_on&#8217;);<br />
   jQuery(&#8216;.hint, .hintoff&#8217;).toggleClass(&#8216;hintoff hint&#8217;);<br />
   });</p>
<p>HTML</p>
<p>				<a>Main Menu </a></p>
<p>		<a>Help &raquo;</a><br />
		<!-- items--></p>
<p>	<!-- infomenu--></p>
<p><!-- infomenuwrap--></p>
<p>Any help will be great! </p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Saving state with the jQuery Accordion Menu by konteyner</title>
		<link>http://www.mikecentola.com/blog/2009/05/31/saving-state-with-the-jquery-accordion-menu/comment-page-1/#comment-9506</link>
		<dc:creator>konteyner</dc:creator>
		<pubDate>Sat, 01 Oct 2011 15:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikecentola.com/blog/?p=176#comment-9506</guid>
		<description>thanks for your sharing,I use accordion menu on my website...</description>
		<content:encoded><![CDATA[<p>thanks for your sharing,I use accordion menu on my website&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Saving state with the jQuery Accordion Menu by iceberg</title>
		<link>http://www.mikecentola.com/blog/2009/05/31/saving-state-with-the-jquery-accordion-menu/comment-page-1/#comment-9473</link>
		<dc:creator>iceberg</dc:creator>
		<pubDate>Wed, 21 Sep 2011 07:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikecentola.com/blog/?p=176#comment-9473</guid>
		<description>Here&#039;s a working example (except for the cookie getter/setter)


	   		 
	jQuery(document).ready(function() {
		
		var selected = readCookie(&#039;activeMkt&#039;);
		var select = -1;
		if (selected){
			select = parseInt(selected);
		}
		
		$( &quot;#accordion&quot; ).accordion({
			header: &#039;h3&#039;,
			autoHeight: false,
			navigation: true,
			collapsible: true,
			alwaysOpen: false,
			animated: &#039;slide&#039;,
			active: select,
			change: function(event,ui) {
				var sel = ui.newHeader.children(&#039;a&#039;).attr(&#039;id&#039;);
				if (sel === undefined) {
					setCookie(&#039;activeMkt&#039;,&#039;-1&#039;);
				} else {
					setCookie(&#039;activeMkt&#039;,sel);
				}
			}	
		});
						
	});



 
	
	&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;EINS&lt;/a&gt;
	EIN

	&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;ZWEI&lt;/a&gt; 
	ZWE

	&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;DREI&lt;/a&gt;
	DRE

  &lt;!-- end accordion --&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a working example (except for the cookie getter/setter)</p>
<p>	jQuery(document).ready(function() {</p>
<p>		var selected = readCookie(&#8216;activeMkt&#8217;);<br />
		var select = -1;<br />
		if (selected){<br />
			select = parseInt(selected);<br />
		}</p>
<p>		$( &#8220;#accordion&#8221; ).accordion({<br />
			header: &#8216;h3&#8242;,<br />
			autoHeight: false,<br />
			navigation: true,<br />
			collapsible: true,<br />
			alwaysOpen: false,<br />
			animated: &#8216;slide&#8217;,<br />
			active: select,<br />
			change: function(event,ui) {<br />
				var sel = ui.newHeader.children(&#8216;a&#8217;).attr(&#8216;id&#8217;);<br />
				if (sel === undefined) {<br />
					setCookie(&#8216;activeMkt&#8217;,'-1&#8242;);<br />
				} else {<br />
					setCookie(&#8216;activeMkt&#8217;,sel);<br />
				}<br />
			}<br />
		});</p>
<p>	});</p>
<p>	<a href="#" rel="nofollow">EINS</a><br />
	EIN</p>
<p>	<a href="#" rel="nofollow">ZWEI</a><br />
	ZWE</p>
<p>	<a href="#" rel="nofollow">DREI</a><br />
	DRE</p>
<p>  <!-- end accordion --></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Saving state with the jQuery Accordion Menu by Roland</title>
		<link>http://www.mikecentola.com/blog/2009/05/31/saving-state-with-the-jquery-accordion-menu/comment-page-1/#comment-9377</link>
		<dc:creator>Roland</dc:creator>
		<pubDate>Wed, 03 Aug 2011 18:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikecentola.com/blog/?p=176#comment-9377</guid>
		<description>Nothing I found here worked for my particular installation.  I developed my own way using the index, if anyone finds this useful:

$(document).ready(function() {
	$(&#039;#accordion&#039;).accordion({
		autoHeight: false, 
		collapsible: true, 
		active: false,
		change: function(event,ui) {
		var index = ui.options.active;
			if (index &gt; -1) {
				$.cookie(&#039;accidx&#039;, index, {expires: 2, path: &#039;/&#039;});
			}
		}
	});
	if ($.cookie(&#039;accidx&#039;) &gt; -1) {
		var idx = Number($.cookie(&#039;accidx&#039;));
		$(&#039;#accordion&#039;).accordion(&#039;option&#039;, &#039;animated&#039;, false);
		$(&#039;#accordion&#039;).accordion(&#039;activate&#039;,idx);
		$(&#039;#accordion&#039;).accordion(&#039;option&#039;, &#039;animated&#039;, &#039;slide&#039;);
	}
});</description>
		<content:encoded><![CDATA[<p>Nothing I found here worked for my particular installation.  I developed my own way using the index, if anyone finds this useful:</p>
<p>$(document).ready(function() {<br />
	$(&#8216;#accordion&#8217;).accordion({<br />
		autoHeight: false,<br />
		collapsible: true,<br />
		active: false,<br />
		change: function(event,ui) {<br />
		var index = ui.options.active;<br />
			if (index &gt; -1) {<br />
				$.cookie(&#8216;accidx&#8217;, index, {expires: 2, path: &#8216;/&#8217;});<br />
			}<br />
		}<br />
	});<br />
	if ($.cookie(&#8216;accidx&#8217;) &gt; -1) {<br />
		var idx = Number($.cookie(&#8216;accidx&#8217;));<br />
		$(&#8216;#accordion&#8217;).accordion(&#8216;option&#8217;, &#8216;animated&#8217;, false);<br />
		$(&#8216;#accordion&#8217;).accordion(&#8216;activate&#8217;,idx);<br />
		$(&#8216;#accordion&#8217;).accordion(&#8216;option&#8217;, &#8216;animated&#8217;, &#8216;slide&#8217;);<br />
	}<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Saving state with the jQuery Accordion Menu by Anders</title>
		<link>http://www.mikecentola.com/blog/2009/05/31/saving-state-with-the-jquery-accordion-menu/comment-page-1/#comment-8906</link>
		<dc:creator>Anders</dc:creator>
		<pubDate>Fri, 08 Apr 2011 13:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikecentola.com/blog/?p=176#comment-8906</guid>
		<description>How can I make this accordion move more smoothly?

It&#039;s ok when it&#039;s opening but when closing a panel it&#039;s not smooth at all.</description>
		<content:encoded><![CDATA[<p>How can I make this accordion move more smoothly?</p>
<p>It&#8217;s ok when it&#8217;s opening but when closing a panel it&#8217;s not smooth at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on REVIEW :: Lumintop L1C Tactical Flashlight by REVIEW :: Lumintop L1C Tactical Flashlight &#124; NY Firearms</title>
		<link>http://www.mikecentola.com/blog/articles/lumintop-l1c-tactical-flashlight/comment-page-1/#comment-8079</link>
		<dc:creator>REVIEW :: Lumintop L1C Tactical Flashlight &#124; NY Firearms</dc:creator>
		<pubDate>Wed, 12 Jan 2011 16:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikecentola.com/blog/#comment-8079</guid>
		<description>[...] out my review: REVIEW :: Lumintop L1C Tactical Flashlight   Share and [...]</description>
		<content:encoded><![CDATA[<p>[...] out my review: REVIEW :: Lumintop L1C Tactical Flashlight   Share and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on REVIEW :: Lumintop L1C Tactical Flashlight by Brian</title>
		<link>http://www.mikecentola.com/blog/articles/lumintop-l1c-tactical-flashlight/comment-page-1/#comment-8064</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Tue, 11 Jan 2011 17:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikecentola.com/blog/#comment-8064</guid>
		<description>Mike - thanks for stopping bye. I&#039;m glad you are enjoying your new light. Excellent review</description>
		<content:encoded><![CDATA[<p>Mike &#8211; thanks for stopping bye. I&#8217;m glad you are enjoying your new light. Excellent review</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Saving state with the jQuery Accordion Menu by Justin</title>
		<link>http://www.mikecentola.com/blog/2009/05/31/saving-state-with-the-jquery-accordion-menu/comment-page-1/#comment-7782</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Mon, 27 Dec 2010 20:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikecentola.com/blog/?p=176#comment-7782</guid>
		<description>Any idea on how to have this work per page? If I copy this page into a new page, jq and all, it reads the cookie. If a site uses multiple accordions this is not how it should work.</description>
		<content:encoded><![CDATA[<p>Any idea on how to have this work per page? If I copy this page into a new page, jq and all, it reads the cookie. If a site uses multiple accordions this is not how it should work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

