<?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: jQuery tabs and cookies</title>
	<atom:link href="http://perassi.org/2008/04/11/jquery-tabs-and-cookies/feed/" rel="self" type="application/rss+xml" />
	<link>http://perassi.org/2008/04/11/jquery-tabs-and-cookies/</link>
	<description>English scratches and Italian notes written by Carlo Perassi</description>
	<lastBuildDate>Thu, 17 May 2012 13:35:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: NatNac</title>
		<link>http://perassi.org/2008/04/11/jquery-tabs-and-cookies/comment-page-1/#comment-9311</link>
		<dc:creator>NatNac</dc:creator>
		<pubDate>Fri, 09 Dec 2011 21:17:31 +0000</pubDate>
		<guid isPermaLink="false">http://perassi.org/?p=348#comment-9311</guid>
		<description>I&#039;ve tried the other examples. The following script creates a named cookie. Wow. But the value in the cookie (index of tab) is always undefined. What&#039;s wrong.

I habe jquery 1.71 and tab 3.0

var tab_cookie_id = parseInt($.cookie(&quot;ui-tabs_user&quot;)) &#124;&#124; 0;
$(function () {
$(&quot;#user &gt; ul&quot;).tabs({selected: tab_cookie_id});
$(&quot;#user &gt; ul&quot;).bind(&#039;tabsshow&#039;, function(event, ui) { var tab_id = ui.index; $.cookie(&quot;ui-tabs_user&quot;, tab_id, { expires: 1});});</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried the other examples. The following script creates a named cookie. Wow. But the value in the cookie (index of tab) is always undefined. What&#8217;s wrong.</p>
<p>I habe jquery 1.71 and tab 3.0</p>
<p>var tab_cookie_id = parseInt($.cookie(&#8220;ui-tabs_user&#8221;)) || 0;<br />
$(function () {<br />
$(&#8220;#user &gt; ul&#8221;).tabs({selected: tab_cookie_id});<br />
$(&#8220;#user &gt; ul&#8221;).bind(&#8216;tabsshow&#8217;, function(event, ui) { var tab_id = ui.index; $.cookie(&#8220;ui-tabs_user&#8221;, tab_id, { expires: 1});});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NatNac</title>
		<link>http://perassi.org/2008/04/11/jquery-tabs-and-cookies/comment-page-1/#comment-9302</link>
		<dc:creator>NatNac</dc:creator>
		<pubDate>Fri, 09 Dec 2011 10:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://perassi.org/?p=348#comment-9302</guid>
		<description>Nick: Fine, very short. But the name of the cookie is ui-tabs%5Bob0ject%20Object%5D for all tabs in the same domain. I have about 15 tabs. There must be an easy way to create one cookie per tab with the name of the selector.</description>
		<content:encoded><![CDATA[<p>Nick: Fine, very short. But the name of the cookie is ui-tabs%5Bob0ject%20Object%5D for all tabs in the same domain. I have about 15 tabs. There must be an easy way to create one cookie per tab with the name of the selector.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: the666bbq</title>
		<link>http://perassi.org/2008/04/11/jquery-tabs-and-cookies/comment-page-1/#comment-5406</link>
		<dc:creator>the666bbq</dc:creator>
		<pubDate>Sat, 31 Oct 2009 01:30:48 +0000</pubDate>
		<guid isPermaLink="false">http://perassi.org/?p=348#comment-5406</guid>
		<description>hallelujah ... I&#039;ve spent too much time on the named cookie thing too ;-) I&#039;m a jQuery evangelist whenever I can but the documentation on how to use custom named cookies (instead of ui-tabs-something) is not sufficient if you ask my opinion ;-) . This snippet is exactly what I needed ... thanks guys.

what is that &#039;something&#039;-integer in &quot;ui-tabs-something&quot; anyway ... it comes from $.data(this.list[0]) but who/where/what is that set ??

wouldn&#039;t it be nice if we could just &#039;set&#039; the cookie name to be used &quot;out of the box&quot; (and if we develoeprs are lazy or not in need for flexibility the plugin can use the default ui-tabs-whatever)

Peter</description>
		<content:encoded><![CDATA[<p>hallelujah &#8230; I&#8217;ve spent too much time on the named cookie thing too ;-) I&#8217;m a jQuery evangelist whenever I can but the documentation on how to use custom named cookies (instead of ui-tabs-something) is not sufficient if you ask my opinion ;-) . This snippet is exactly what I needed &#8230; thanks guys.</p>
<p>what is that &#8216;something&#8217;-integer in &#8220;ui-tabs-something&#8221; anyway &#8230; it comes from $.data(this.list[0]) but who/where/what is that set ??</p>
<p>wouldn&#8217;t it be nice if we could just &#8216;set&#8217; the cookie name to be used &#8220;out of the box&#8221; (and if we develoeprs are lazy or not in need for flexibility the plugin can use the default ui-tabs-whatever)</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michele</title>
		<link>http://perassi.org/2008/04/11/jquery-tabs-and-cookies/comment-page-1/#comment-5397</link>
		<dc:creator>Michele</dc:creator>
		<pubDate>Tue, 15 Sep 2009 07:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://perassi.org/?p=348#comment-5397</guid>
		<description>Nick: I have been looking for this for soooo long!Simple and straightforward. Thank you.</description>
		<content:encoded><![CDATA[<p>Nick: I have been looking for this for soooo long!Simple and straightforward. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlo</title>
		<link>http://perassi.org/2008/04/11/jquery-tabs-and-cookies/comment-page-1/#comment-5328</link>
		<dc:creator>Carlo</dc:creator>
		<pubDate>Thu, 15 Jan 2009 21:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://perassi.org/?p=348#comment-5328</guid>
		<description>Nick: that&#039;s good news. Thank you.</description>
		<content:encoded><![CDATA[<p>Nick: that&#8217;s good news. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Clarke</title>
		<link>http://perassi.org/2008/04/11/jquery-tabs-and-cookies/comment-page-1/#comment-5327</link>
		<dc:creator>Nick Clarke</dc:creator>
		<pubDate>Thu, 15 Jan 2009 16:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://perassi.org/?p=348#comment-5327</guid>
		<description>Just to let you know this is now built into the current release for tabs. To use all I had to do was:

$(&#039;#example &gt; ul&#039;).tabs({cookie: {expires: 7}})

Hope this helps</description>
		<content:encoded><![CDATA[<p>Just to let you know this is now built into the current release for tabs. To use all I had to do was:</p>
<p>$(&#8216;#example &gt; ul&#8217;).tabs({cookie: {expires: 7}})</p>
<p>Hope this helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marian Bida</title>
		<link>http://perassi.org/2008/04/11/jquery-tabs-and-cookies/comment-page-1/#comment-5273</link>
		<dc:creator>Marian Bida</dc:creator>
		<pubDate>Mon, 20 Oct 2008 12:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://perassi.org/?p=348#comment-5273</guid>
		<description>Don&#039;t try it, just use it, it is working good..</description>
		<content:encoded><![CDATA[<p>Don&#8217;t try it, just use it, it is working good..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PP</title>
		<link>http://perassi.org/2008/04/11/jquery-tabs-and-cookies/comment-page-1/#comment-5266</link>
		<dc:creator>PP</dc:creator>
		<pubDate>Tue, 14 Oct 2008 18:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://perassi.org/?p=348#comment-5266</guid>
		<description>thx Alien Y :)</description>
		<content:encoded><![CDATA[<p>thx Alien Y :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlo</title>
		<link>http://perassi.org/2008/04/11/jquery-tabs-and-cookies/comment-page-1/#comment-4019</link>
		<dc:creator>Carlo</dc:creator>
		<pubDate>Fri, 15 Aug 2008 17:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://perassi.org/?p=348#comment-4019</guid>
		<description>Dave, Alien Y:  thanks... I&#039;m going to try your snippets as soon as possible and perhaps that could lead me to release an updated version of my code.</description>
		<content:encoded><![CDATA[<p>Dave, Alien Y:  thanks&#8230; I&#8217;m going to try your snippets as soon as possible and perhaps that could lead me to release an updated version of my code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alien Y</title>
		<link>http://perassi.org/2008/04/11/jquery-tabs-and-cookies/comment-page-1/#comment-4014</link>
		<dc:creator>Alien Y</dc:creator>
		<pubDate>Fri, 15 Aug 2008 12:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://perassi.org/?p=348#comment-4014</guid>
		<description>I rewrite for ui Tab3.0 + jQuery 1.2.6

var tab_cookie_id = parseInt($.cookie(&quot;the_tab_cookie&quot;)) &#124;&#124; 0; 
  
$(&quot;#container-1 &gt; ul&quot;).tabs({ 
selected: tab_cookie_id, 
select: function(e, ui) { if (ui.index == 0 &amp;&amp; tab1_use_ == 1) {/* do some thing */} 
}, 
show: function(e, ui) { var tab_id = ui.index; $.cookie(&quot;the_tab_cookie&quot;, tab_id, { expires: 30 }); } 
});</description>
		<content:encoded><![CDATA[<p>I rewrite for ui Tab3.0 + jQuery 1.2.6</p>
<p>var tab_cookie_id = parseInt($.cookie(&#8220;the_tab_cookie&#8221;)) || 0; </p>
<p>$(&#8220;#container-1 &gt; ul&#8221;).tabs({<br />
selected: tab_cookie_id,<br />
select: function(e, ui) { if (ui.index == 0 &amp;&amp; tab1_use_ == 1) {/* do some thing */}<br />
},<br />
show: function(e, ui) { var tab_id = ui.index; $.cookie(&#8220;the_tab_cookie&#8221;, tab_id, { expires: 30 }); }<br />
});</p>
]]></content:encoded>
	</item>
</channel>
</rss>

