<?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 UI &#8211; Part 2 Tabs</title>
	<atom:link href="http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/feed/" rel="self" type="application/rss+xml" />
	<link>http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/</link>
	<description>Designing, Developing and Generally Making a Mess of Things</description>
	<lastBuildDate>Sun, 22 Nov 2009 05:38:55 -0700</lastBuildDate>
	<generator>http://wordpress.org/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Karen</title>
		<link>http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/comment-page-1/#comment-953</link>
		<dc:creator>Karen</dc:creator>
		<pubDate>Sun, 22 Nov 2009 05:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://mdrisser.r1designs.net/blog/?p=5#comment-953</guid>
		<description>@mdrisser

I&#039;m using jquery ui tabs v 1.7.2 on my site.  I see that you have a code that checks the value of html() to automatically hide tabs.  How does that work?  my site is static and has 7 total tabs.  I want to disable the tabs that don&#039;t have content in them automatically.  Where do I place the if statement?  Do I need an else to the if?  How will it know that a tab is empty?  Finally, should the code be...

if($(&#039;#myTab&#039;).html == &quot;&quot;)
{
$(&#039;#myTab&#039;).disable();
}

Thanks!</description>
		<content:encoded><![CDATA[<p>@mdrisser</p>
<p>I&#8217;m using jquery ui tabs v 1.7.2 on my site.  I see that you have a code that checks the value of html() to automatically hide tabs.  How does that work?  my site is static and has 7 total tabs.  I want to disable the tabs that don&#8217;t have content in them automatically.  Where do I place the if statement?  Do I need an else to the if?  How will it know that a tab is empty?  Finally, should the code be&#8230;</p>
<p>if($(&#8217;#myTab&#8217;).html == &#8220;&#8221;)<br />
{<br />
$(&#8217;#myTab&#8217;).disable();<br />
}</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mdrisser</title>
		<link>http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/comment-page-1/#comment-737</link>
		<dc:creator>mdrisser</dc:creator>
		<pubDate>Tue, 14 Jul 2009 00:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://mdrisser.r1designs.net/blog/?p=5#comment-737</guid>
		<description>@Danny, I would check to see if the tabs contain anything by checking the value of html(). Then if its empty, use the disble function f the tabs UI to disable the empty tab(s).
Something like:
if($(&#039;#myTab&#039;).html == &#039;&#039;) {
    $(&#039;#myTab&#039;).disable();
}</description>
		<content:encoded><![CDATA[<p>@Danny, I would check to see if the tabs contain anything by checking the value of html(). Then if its empty, use the disble function f the tabs UI to disable the empty tab(s).<br />
Something like:<br />
if($(&#8217;#myTab&#8217;).html == &#8221;) {<br />
    $(&#8217;#myTab&#8217;).disable();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/comment-page-1/#comment-736</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Sun, 12 Jul 2009 07:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://mdrisser.r1designs.net/blog/?p=5#comment-736</guid>
		<description>I&#039;m using these tabs in post, and I&#039;m trying to control the amount of tabs that show up in each post, for example i created so there can be a maximum of four different tabs.
in one post theres only content in 1 tab so i don&#039;t really need to use tabs but in the next post theres content in 2 different tabs so i use those tabs and i want only these 2 to show in post and other 2 not show at all unless i add content in the 3rd or 4th tabs</description>
		<content:encoded><![CDATA[<p>I&#8217;m using these tabs in post, and I&#8217;m trying to control the amount of tabs that show up in each post, for example i created so there can be a maximum of four different tabs.<br />
in one post theres only content in 1 tab so i don&#8217;t really need to use tabs but in the next post theres content in 2 different tabs so i use those tabs and i want only these 2 to show in post and other 2 not show at all unless i add content in the 3rd or 4th tabs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mdrisser</title>
		<link>http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/comment-page-1/#comment-92</link>
		<dc:creator>mdrisser</dc:creator>
		<pubDate>Mon, 15 Sep 2008 20:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://mdrisser.r1designs.net/blog/?p=5#comment-92</guid>
		<description>@jDude, @Jeff - I&#039;ll see if I can fix it tonight, I changed themes, and the syntatx highlighter and I think that messed things up.

@Sid Just off the top of my head, it seems to me that you can write some code that checks a variable when a user clicks a tab, if it is not set, or not set correctly, you can set it and fire off an AJAX call, if it is set, you can ignore the click:
$(&#039;#myTab&#039;).click(function() {
    if(myVar != 1) {
        // AJAX code goes here
        myVar = 1;
    } else {
        return false;
    }
});

@Randy, my best suggestion is to get Firefox and the Firebug extension for it, this will enable you to dynamically explore the page and see where the values are being set at. In ddition it will allow you to change the CSS for that page, in the browser, so you can see the results immediately. Any changes you make through Firebug are not permanent, but its a great troubleshooting and design/development tool.</description>
		<content:encoded><![CDATA[<p>@jDude, @Jeff &#8211; I&#8217;ll see if I can fix it tonight, I changed themes, and the syntatx highlighter and I think that messed things up.</p>
<p>@Sid Just off the top of my head, it seems to me that you can write some code that checks a variable when a user clicks a tab, if it is not set, or not set correctly, you can set it and fire off an AJAX call, if it is set, you can ignore the click:<br />
$(&#8217;#myTab&#8217;).click(function() {<br />
    if(myVar != 1) {<br />
        // AJAX code goes here<br />
        myVar = 1;<br />
    } else {<br />
        return false;<br />
    }<br />
});</p>
<p>@Randy, my best suggestion is to get Firefox and the Firebug extension for it, this will enable you to dynamically explore the page and see where the values are being set at. In ddition it will allow you to change the CSS for that page, in the browser, so you can see the results immediately. Any changes you make through Firebug are not permanent, but its a great troubleshooting and design/development tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy</title>
		<link>http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/comment-page-1/#comment-91</link>
		<dc:creator>Randy</dc:creator>
		<pubDate>Fri, 12 Sep 2008 21:08:54 +0000</pubDate>
		<guid isPermaLink="false">http://mdrisser.r1designs.net/blog/?p=5#comment-91</guid>
		<description>Thanks for the tutorial. Maybe you are interested in addressing something that confuses me!

I want different colors for my tabs. First, I read the jQuery documentation on themes; sadly it didn&#039;t click with me. Then I pored over &#039;flora.css&#039; and all I learned was that those guys know css a lot better than me!

Since you were kind enough to post a tutorial, do you have any further suggestions on setting the tab colors? Specifically, the portion of the markup (in your sample) that has the text &#039;one&#039;, &#039;two&#039;, &#039;three&#039;</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial. Maybe you are interested in addressing something that confuses me!</p>
<p>I want different colors for my tabs. First, I read the jQuery documentation on themes; sadly it didn&#8217;t click with me. Then I pored over &#8216;flora.css&#8217; and all I learned was that those guys know css a lot better than me!</p>
<p>Since you were kind enough to post a tutorial, do you have any further suggestions on setting the tab colors? Specifically, the portion of the markup (in your sample) that has the text &#8216;one&#8217;, &#8216;two&#8217;, &#8216;three&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sid</title>
		<link>http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/comment-page-1/#comment-90</link>
		<dc:creator>Sid</dc:creator>
		<pubDate>Thu, 11 Sep 2008 09:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://mdrisser.r1designs.net/blog/?p=5#comment-90</guid>
		<description>Hi,

do you know if there&#039;s jquery dialog supports ajax tab that only loads the tab content on first click rather than loading it again and again every time the ajax tab is activated?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>do you know if there&#8217;s jquery dialog supports ajax tab that only loads the tab content on first click rather than loading it again and again every time the ajax tab is activated?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/comment-page-1/#comment-89</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Wed, 10 Sep 2008 23:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://mdrisser.r1designs.net/blog/?p=5#comment-89</guid>
		<description>There should be code inside the  tags</description>
		<content:encoded><![CDATA[<p>There should be code inside the  tags</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jDude</title>
		<link>http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/comment-page-1/#comment-69</link>
		<dc:creator>jDude</dc:creator>
		<pubDate>Thu, 28 Aug 2008 03:11:53 +0000</pubDate>
		<guid isPermaLink="false">http://mdrisser.r1designs.net/blog/?p=5#comment-69</guid>
		<description>The first 3 big chunks of code all look the same--only the 4th is different.  There is nothing inside the &#039;script type&#039; line now.</description>
		<content:encoded><![CDATA[<p>The first 3 big chunks of code all look the same&#8211;only the 4th is different.  There is nothing inside the &#8217;script type&#8217; line now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jayg</title>
		<link>http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/comment-page-1/#comment-41</link>
		<dc:creator>jayg</dc:creator>
		<pubDate>Mon, 14 Jul 2008 13:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://mdrisser.r1designs.net/blog/?p=5#comment-41</guid>
		<description>I am still seeing just mce:# in all the places where there should be javascript code (on FF3).</description>
		<content:encoded><![CDATA[<p>I am still seeing just mce:# in all the places where there should be javascript code (on FF3).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-07-04 &#124; JeremiahTolbert.com</title>
		<link>http://mdrisser.r1designs.net/blog/2008/05/28/jquery-ui-part-2-tabs/comment-page-1/#comment-35</link>
		<dc:creator>links for 2008-07-04 &#124; JeremiahTolbert.com</dc:creator>
		<pubDate>Fri, 04 Jul 2008 16:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://mdrisser.r1designs.net/blog/?p=5#comment-35</guid>
		<description>[...] jQuery UI - Part 2 Tabs (tags: jquery tabs tutorial) [...]</description>
		<content:encoded><![CDATA[<p>[...] jQuery UI &#8211; Part 2 Tabs (tags: jquery tabs tutorial) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
