<?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 Make JQuery UI Tabs Linkable and Bookmarkable</title>
	<atom:link href="http://blog.rootsmith.ca/mod_python/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rootsmith.ca/jquery/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-make-jquery-ui-tabs-linkable-or-bookmarkable</link>
	<description>random technology ramblings</description>
	<lastBuildDate>Tue, 03 Jan 2012 15:03:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Daniel</title>
		<link>http://blog.rootsmith.ca/jquery/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/#comment-250</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 09 Dec 2011 16:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://articles.rootsmith.ca/?p=68#comment-250</guid>
		<description>Sorry for triple posting...I was trying to get the div and ul html code to display</description>
		<content:encoded><![CDATA[<p>Sorry for triple posting&#8230;I was trying to get the div and ul html code to display</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://blog.rootsmith.ca/jquery/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/#comment-249</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 09 Dec 2011 16:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://articles.rootsmith.ca/?p=68#comment-249</guid>
		<description>I&#039;m new to javascript and had a heck of a time getting this to work.  I finally figured it out but I had to make a few changes:

&lt;pre&gt;
function initTabs() {
   var tabIndex = {&#039;scripting&#039;:0,&#039;scripting-history&#039;:1,&#039;equipment&#039;:2,&#039;syslogs&#039;:3,&#039;misc&#039;:4}

   // This will match the anchor tag in the URL i.e. http://here.com/page#anchor
   // Use .+? instead of \w so you can match on anchors that contain - or _
   var re = /#.+?$/;
   var match = re.exec(document.location.toString());

   if (match != null) {
      var anchor = match[0].substr(1);
   }

   for (key in tabIndex) {
       if (anchor == key) {
          selectedTab = tabIndex[key];
          break;
       } else {
          selectedTab = 0;
       }
   }

   // render the tabs
   tabs = $(&quot;#tabs&quot;).tabs({selected: selectedTab});

   // when tab is shown update the URL
   tabs.bind(&#039;tabsshow&#039;, function(event, ui) {
     // to make bookmarkable
      var re = /#tabs-/;
      window.location.hash = ui.tab.hash.replace(re, &quot;#&quot;);
   });

}



&lt;a href=&quot;#tabs-scripting&quot; rel=&quot;nofollow&quot;&gt;Scripting&lt;/a&gt;
&lt;a href=&quot;#tabs-scripting-history&quot; rel=&quot;nofollow&quot;&gt;Scripting History&lt;/a&gt;
&lt;a href=&quot;#tabs-equipment&quot; rel=&quot;nofollow&quot;&gt;Equipment List&lt;/a&gt;
&lt;a href=&quot;#tabs-syslogs&quot; rel=&quot;nofollow&quot;&gt;Syslogs&lt;/a&gt;
&lt;a href=&quot;#tabs-misc&quot; rel=&quot;nofollow&quot;&gt;Misc&lt;/a&gt;


tab content here

etc, etc for the other tabs


initTabs();

&lt;/pre&gt;

So when I click on my &quot;Scripting History&quot; tab the url is changed to index.php#scripting-history which I can bookmark.  When I load the bookmark initTabs will load my tabs-scripting-history tab.

One thing I found was a bit of jquery code that will change the url for you too.  This feels much faster than doing it in initTabs.  To use this remove the following lines from initTabs:
&lt;pre&gt;
   // when tab is shown update the URL
   tabs.bind(&#039;tabsshow&#039;, function(event, ui) {
     // to make bookmarkable
      var re = /#tabs-/;
      window.location.hash = ui.tab.hash.replace(re, &quot;#&quot;);
   });

And add this to .ready(function()

$(document).ready(function() {
   // This converts &quot;#tabs-foo&quot; to &quot;#foo&quot; so that initTabs() can
   // then find #foo and select the appropriate tab
   $(&#039;#tabs&#039;).tabs({
      select: function(event, ui) {
         var re = /#tabs-/;
         window.location.hash = ui.tab.hash.replace(re, &quot;#&quot;);
      }
   });
});
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m new to javascript and had a heck of a time getting this to work.  I finally figured it out but I had to make a few changes:</p>
<pre>
function initTabs() {
   var tabIndex = {'scripting':0,'scripting-history':1,'equipment':2,'syslogs':3,'misc':4}

   // This will match the anchor tag in the URL i.e. <a href="http://here.com/page#anchor" rel="nofollow">http://here.com/page#anchor</a>
   // Use .+? instead of \w so you can match on anchors that contain - or _
   var re = /#.+?$/;
   var match = re.exec(document.location.toString());

   if (match != null) {
      var anchor = match[0].substr(1);
   }

   for (key in tabIndex) {
       if (anchor == key) {
          selectedTab = tabIndex[key];
          break;
       } else {
          selectedTab = 0;
       }
   }

   // render the tabs
   tabs = $("#tabs").tabs({selected: selectedTab});

   // when tab is shown update the URL
   tabs.bind('tabsshow', function(event, ui) {
     // to make bookmarkable
      var re = /#tabs-/;
      window.location.hash = ui.tab.hash.replace(re, "#");
   });

}

<a href="#tabs-scripting" rel="nofollow">Scripting</a>
<a href="#tabs-scripting-history" rel="nofollow">Scripting History</a>
<a href="#tabs-equipment" rel="nofollow">Equipment List</a>
<a href="#tabs-syslogs" rel="nofollow">Syslogs</a>
<a href="#tabs-misc" rel="nofollow">Misc</a>

tab content here

etc, etc for the other tabs

initTabs();
</pre>
<p>So when I click on my &#8220;Scripting History&#8221; tab the url is changed to index.php#scripting-history which I can bookmark.  When I load the bookmark initTabs will load my tabs-scripting-history tab.</p>
<p>One thing I found was a bit of jquery code that will change the url for you too.  This feels much faster than doing it in initTabs.  To use this remove the following lines from initTabs:</p>
<pre>
   // when tab is shown update the URL
   tabs.bind('tabsshow', function(event, ui) {
     // to make bookmarkable
      var re = /#tabs-/;
      window.location.hash = ui.tab.hash.replace(re, "#");
   });

And add this to .ready(function()

$(document).ready(function() {
   // This converts "#tabs-foo" to "#foo" so that initTabs() can
   // then find #foo and select the appropriate tab
   $('#tabs').tabs({
      select: function(event, ui) {
         var re = /#tabs-/;
         window.location.hash = ui.tab.hash.replace(re, "#");
      }
   });
});
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://blog.rootsmith.ca/jquery/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/#comment-248</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 09 Dec 2011 16:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://articles.rootsmith.ca/?p=68#comment-248</guid>
		<description>I&#039;m new to javascript and had a heck of a time getting this to work.  I finally figured it out but I had to make a few changes:

&lt;pre&gt;
function initTabs() {
   var tabIndex = {&#039;scripting&#039;:0,&#039;scripting-history&#039;:1,&#039;equipment&#039;:2,&#039;syslogs&#039;:3,&#039;misc&#039;:4}

   // This will match the anchor tag in the URL i.e. http://here.com/page#anchor
   // Use .+? instead of \w so you can match on anchors that contain - or _
   var re = /#.+?$/;
   var match = re.exec(document.location.toString());

   if (match != null) {
      var anchor = match[0].substr(1);
   }

   for (key in tabIndex) {
       if (anchor == key) {
          selectedTab = tabIndex[key];
          break;
       } else {
          selectedTab = 0;
       }
   }

   // render the tabs
   tabs = $(&quot;#tabs&quot;).tabs({selected: selectedTab});

   // when tab is shown update the URL
   tabs.bind(&#039;tabsshow&#039;, function(event, ui) {
     // to make bookmarkable
      var re = /#tabs-/;
      window.location.hash = ui.tab.hash.replace(re, &quot;#&quot;);
   });

}




&lt;a href=&quot;#tabs-scripting&quot; rel=&quot;nofollow&quot;&gt;Scripting&lt;/a&gt;
&lt;a href=&quot;#tabs-scripting-history&quot; rel=&quot;nofollow&quot;&gt;Scripting History&lt;/a&gt;
&lt;a href=&quot;#tabs-equipment&quot; rel=&quot;nofollow&quot;&gt;Equipment List&lt;/a&gt;
&lt;a href=&quot;#tabs-syslogs&quot; rel=&quot;nofollow&quot;&gt;Syslogs&lt;/a&gt;
&lt;a href=&quot;#tabs-misc&quot; rel=&quot;nofollow&quot;&gt;Misc&lt;/a&gt;


tab content here

etc, etc for the other tabs


initTabs();


So when I click on my &quot;Scripting History&quot; tab the url is changed to index.php#scripting-history which I can bookmark.  When I load the bookmark initTabs will load my tabs-scripting-history tab.

One thing I found was a bit of jquery code that will change the url for you too.  This feels much faster than doing it in initTabs.  To use this remove the following lines from initTabs:
   // when tab is shown update the URL
   tabs.bind(&#039;tabsshow&#039;, function(event, ui) {
     // to make bookmarkable
      var re = /#tabs-/;
      window.location.hash = ui.tab.hash.replace(re, &quot;#&quot;);
   });

And add this to .ready(function()

$(document).ready(function() {
   // This converts &quot;#tabs-foo&quot; to &quot;#foo&quot; so that initTabs() can
   // then find #foo and select the appropriate tab
   $(&#039;#tabs&#039;).tabs({
      select: function(event, ui) {
         var re = /#tabs-/;
         window.location.hash = ui.tab.hash.replace(re, &quot;#&quot;);
      }
   });
});
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m new to javascript and had a heck of a time getting this to work.  I finally figured it out but I had to make a few changes:</p>
<pre>
function initTabs() {
   var tabIndex = {'scripting':0,'scripting-history':1,'equipment':2,'syslogs':3,'misc':4}

   // This will match the anchor tag in the URL i.e. <a href="http://here.com/page#anchor" rel="nofollow">http://here.com/page#anchor</a>
   // Use .+? instead of \w so you can match on anchors that contain - or _
   var re = /#.+?$/;
   var match = re.exec(document.location.toString());

   if (match != null) {
      var anchor = match[0].substr(1);
   }

   for (key in tabIndex) {
       if (anchor == key) {
          selectedTab = tabIndex[key];
          break;
       } else {
          selectedTab = 0;
       }
   }

   // render the tabs
   tabs = $("#tabs").tabs({selected: selectedTab});

   // when tab is shown update the URL
   tabs.bind('tabsshow', function(event, ui) {
     // to make bookmarkable
      var re = /#tabs-/;
      window.location.hash = ui.tab.hash.replace(re, "#");
   });

}

<a href="#tabs-scripting" rel="nofollow">Scripting</a>
<a href="#tabs-scripting-history" rel="nofollow">Scripting History</a>
<a href="#tabs-equipment" rel="nofollow">Equipment List</a>
<a href="#tabs-syslogs" rel="nofollow">Syslogs</a>
<a href="#tabs-misc" rel="nofollow">Misc</a>

tab content here

etc, etc for the other tabs

initTabs();

So when I click on my "Scripting History" tab the url is changed to index.php#scripting-history which I can bookmark.  When I load the bookmark initTabs will load my tabs-scripting-history tab.

One thing I found was a bit of jquery code that will change the url for you too.  This feels much faster than doing it in initTabs.  To use this remove the following lines from initTabs:
   // when tab is shown update the URL
   tabs.bind('tabsshow', function(event, ui) {
     // to make bookmarkable
      var re = /#tabs-/;
      window.location.hash = ui.tab.hash.replace(re, "#");
   });

And add this to .ready(function()

$(document).ready(function() {
   // This converts "#tabs-foo" to "#foo" so that initTabs() can
   // then find #foo and select the appropriate tab
   $('#tabs').tabs({
      select: function(event, ui) {
         var re = /#tabs-/;
         window.location.hash = ui.tab.hash.replace(re, "#");
      }
   });
});
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://blog.rootsmith.ca/jquery/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/#comment-247</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 09 Dec 2011 16:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://articles.rootsmith.ca/?p=68#comment-247</guid>
		<description>I&#039;m new to javascript and had a heck of a time getting this to work.  I finally figured it out but I had to make a few changes:

function initTabs() {
   var tabIndex = {&#039;scripting&#039;:0,&#039;scripting-history&#039;:1,&#039;equipment&#039;:2,&#039;syslogs&#039;:3,&#039;misc&#039;:4}

   // This will match the anchor tag in the URL i.e. http://here.com/page#anchor
   // Use .+? instead of \w so you can match on anchors that contain - or _
   var re = /#.+?$/;
   var match = re.exec(document.location.toString());

   if (match != null) {
      var anchor = match[0].substr(1);
   }

   for (key in tabIndex) {
       if (anchor == key) {
          selectedTab = tabIndex[key];
          break;
       } else {
          selectedTab = 0;
       }
   }

   // render the tabs
   tabs = $(&quot;#tabs&quot;).tabs({selected: selectedTab});

   // when tab is shown update the URL
   tabs.bind(&#039;tabsshow&#039;, function(event, ui) {
     // to make bookmarkable
      var re = /#tabs-/;
      window.location.hash = ui.tab.hash.replace(re, &quot;#&quot;);
   });

}



&lt;a href=&quot;#tabs-scripting&quot; rel=&quot;nofollow&quot;&gt;Scripting&lt;/a&gt;
&lt;a href=&quot;#tabs-scripting-history&quot; rel=&quot;nofollow&quot;&gt;Scripting History&lt;/a&gt;
&lt;a href=&quot;#tabs-equipment&quot; rel=&quot;nofollow&quot;&gt;Equipment List&lt;/a&gt;
&lt;a href=&quot;#tabs-syslogs&quot; rel=&quot;nofollow&quot;&gt;Syslogs&lt;/a&gt;
&lt;a href=&quot;#tabs-misc&quot; rel=&quot;nofollow&quot;&gt;Misc&lt;/a&gt;


tab content here

etc, etc for the other tabs


initTabs();


So when I click on my &quot;Scripting History&quot; tab the url is changed to index.php#scripting-history which I can bookmark.  When I load the bookmark initTabs will load my tabs-scripting-history tab.

One thing I found was a bit of jquery code that will change the url for you too.  This feels much faster than doing it in initTabs.  To use this remove the following lines from initTabs:
   // when tab is shown update the URL
   tabs.bind(&#039;tabsshow&#039;, function(event, ui) {
     // to make bookmarkable
      var re = /#tabs-/;
      window.location.hash = ui.tab.hash.replace(re, &quot;#&quot;);
   });

And add this to .ready(function()

$(document).ready(function() {
   // This converts &quot;#tabs-foo&quot; to &quot;#foo&quot; so that initTabs() can
   // then find #foo and select the appropriate tab
   $(&#039;#tabs&#039;).tabs({
      select: function(event, ui) {
         var re = /#tabs-/;
         window.location.hash = ui.tab.hash.replace(re, &quot;#&quot;);
      }
   });
});</description>
		<content:encoded><![CDATA[<p>I&#8217;m new to javascript and had a heck of a time getting this to work.  I finally figured it out but I had to make a few changes:</p>
<p>function initTabs() {<br />
   var tabIndex = {&#8216;scripting&#8217;:0,&#8217;scripting-history&#8217;:1,&#8217;equipment&#8217;:2,&#8217;syslogs&#8217;:3,&#8217;misc&#8217;:4}</p>
<p>   // This will match the anchor tag in the URL i.e. <a href="http://here.com/page#anchor" rel="nofollow">http://here.com/page#anchor</a><br />
   // Use .+? instead of \w so you can match on anchors that contain &#8211; or _<br />
   var re = /#.+?$/;<br />
   var match = re.exec(document.location.toString());</p>
<p>   if (match != null) {<br />
      var anchor = match[0].substr(1);<br />
   }</p>
<p>   for (key in tabIndex) {<br />
       if (anchor == key) {<br />
          selectedTab = tabIndex[key];<br />
          break;<br />
       } else {<br />
          selectedTab = 0;<br />
       }<br />
   }</p>
<p>   // render the tabs<br />
   tabs = $(&#8220;#tabs&#8221;).tabs({selected: selectedTab});</p>
<p>   // when tab is shown update the URL<br />
   tabs.bind(&#8216;tabsshow&#8217;, function(event, ui) {<br />
     // to make bookmarkable<br />
      var re = /#tabs-/;<br />
      window.location.hash = ui.tab.hash.replace(re, &#8220;#&#8221;);<br />
   });</p>
<p>}</p>
<p><a href="#tabs-scripting" rel="nofollow">Scripting</a><br />
<a href="#tabs-scripting-history" rel="nofollow">Scripting History</a><br />
<a href="#tabs-equipment" rel="nofollow">Equipment List</a><br />
<a href="#tabs-syslogs" rel="nofollow">Syslogs</a><br />
<a href="#tabs-misc" rel="nofollow">Misc</a></p>
<p>tab content here</p>
<p>etc, etc for the other tabs</p>
<p>initTabs();</p>
<p>So when I click on my &#8220;Scripting History&#8221; tab the url is changed to index.php#scripting-history which I can bookmark.  When I load the bookmark initTabs will load my tabs-scripting-history tab.</p>
<p>One thing I found was a bit of jquery code that will change the url for you too.  This feels much faster than doing it in initTabs.  To use this remove the following lines from initTabs:<br />
   // when tab is shown update the URL<br />
   tabs.bind(&#8216;tabsshow&#8217;, function(event, ui) {<br />
     // to make bookmarkable<br />
      var re = /#tabs-/;<br />
      window.location.hash = ui.tab.hash.replace(re, &#8220;#&#8221;);<br />
   });</p>
<p>And add this to .ready(function()</p>
<p>$(document).ready(function() {<br />
   // This converts &#8220;#tabs-foo&#8221; to &#8220;#foo&#8221; so that initTabs() can<br />
   // then find #foo and select the appropriate tab<br />
   $(&#8216;#tabs&#8217;).tabs({<br />
      select: function(event, ui) {<br />
         var re = /#tabs-/;<br />
         window.location.hash = ui.tab.hash.replace(re, &#8220;#&#8221;);<br />
      }<br />
   });<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thomas</title>
		<link>http://blog.rootsmith.ca/jquery/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/#comment-83</link>
		<dc:creator>thomas</dc:creator>
		<pubDate>Fri, 15 Jul 2011 08:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://articles.rootsmith.ca/?p=68#comment-83</guid>
		<description>Its worked.

Thanks,</description>
		<content:encoded><![CDATA[<p>Its worked.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dynamic anchorlinks in Sitecore &#124; Larres CMS ramblings</title>
		<link>http://blog.rootsmith.ca/jquery/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/#comment-82</link>
		<dc:creator>Dynamic anchorlinks in Sitecore &#124; Larres CMS ramblings</dc:creator>
		<pubDate>Thu, 24 Mar 2011 23:28:15 +0000</pubDate>
		<guid isPermaLink="false">http://articles.rootsmith.ca/?p=68#comment-82</guid>
		<description>[...] Anyway, no matter if the content should be shown in one page, in tabs or in any other way we had to be able to link to the different subitems directly. As I prefer standard HTML using anchors seemed the way to go, anchors works fine in a plain scrollable page but it could also be used in JQuery tabs. [...]</description>
		<content:encoded><![CDATA[<p>[...] Anyway, no matter if the content should be shown in one page, in tabs or in any other way we had to be able to link to the different subitems directly. As I prefer standard HTML using anchors seemed the way to go, anchors works fine in a plain scrollable page but it could also be used in JQuery tabs. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://blog.rootsmith.ca/jquery/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/#comment-81</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Tue, 22 Mar 2011 08:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://articles.rootsmith.ca/?p=68#comment-81</guid>
		<description>Mikkel&#039;s solution worked for me. Thanks.</description>
		<content:encoded><![CDATA[<p>Mikkel&#8217;s solution worked for me. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://blog.rootsmith.ca/jquery/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/#comment-80</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 12 Feb 2011 22:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://articles.rootsmith.ca/?p=68#comment-80</guid>
		<description>I found a great page on how to change the list item image using jQuery.  It is super simple and more browser compliant than css.

&lt;a href=&quot;http://www.ajaxera.com/jquery-change-li-hover/&quot; rel=&quot;nofollow&quot;&gt;http://www.ajaxera.com/jquery-change-li-hover/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I found a great page on how to change the list item image using jQuery.  It is super simple and more browser compliant than css.</p>
<p><a href="http://www.ajaxera.com/jquery-change-li-hover/" rel="nofollow">http://www.ajaxera.com/jquery-change-li-hover/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mattias</title>
		<link>http://blog.rootsmith.ca/jquery/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/#comment-79</link>
		<dc:creator>Mattias</dc:creator>
		<pubDate>Fri, 26 Nov 2010 10:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://articles.rootsmith.ca/?p=68#comment-79</guid>
		<description>I think there is typo on the line:
var re = /#w+$/;
Should be:
var re = /#\w+$/;
Thanks!</description>
		<content:encoded><![CDATA[<p>I think there is typo on the line:<br />
var re = /#w+$/;<br />
Should be:<br />
var re = /#\w+$/;<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikkel</title>
		<link>http://blog.rootsmith.ca/jquery/how-to-make-jquery-ui-tabs-linkable-or-bookmarkable/#comment-78</link>
		<dc:creator>Mikkel</dc:creator>
		<pubDate>Mon, 08 Nov 2010 10:40:52 +0000</pubDate>
		<guid isPermaLink="false">http://articles.rootsmith.ca/?p=68#comment-78</guid>
		<description>This works:

// initialize the tabbed interface with a default method set to update
// the url when tabs are clicked (this makes bookmarking possible)
tabs = $(&quot;#tabs&quot;).tabs({
    &#039;select&#039;: function(event, ui){document.location.hash = ui.panel.id;}
});

// now start by selecting the tab that corresponds to the url hash
// if the hash does not match a tab the first tab will be selected by default
tabs.tabs(&#039;select&#039;,document.location.hash);</description>
		<content:encoded><![CDATA[<p>This works:</p>
<p>// initialize the tabbed interface with a default method set to update<br />
// the url when tabs are clicked (this makes bookmarking possible)<br />
tabs = $(&#8220;#tabs&#8221;).tabs({<br />
    &#8216;select&#8217;: function(event, ui){document.location.hash = ui.panel.id;}<br />
});</p>
<p>// now start by selecting the tab that corresponds to the url hash<br />
// if the hash does not match a tab the first tab will be selected by default<br />
tabs.tabs(&#8216;select&#8217;,document.location.hash);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

