<?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: Firefox 1.5 and Tabbed Browsing on OS X</title>
	<atom:link href="http://www.martingordon.org/blog/2005/11/30/firefox-15-and-tabbed-browsing-on-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martingordon.org/blog/2005/11/30/firefox-15-and-tabbed-browsing-on-os-x/</link>
	<description></description>
	<pubDate>Thu, 17 May 2012 22:55:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Thom Brooks</title>
		<link>http://www.martingordon.org/blog/2005/11/30/firefox-15-and-tabbed-browsing-on-os-x/comment-page-1/#comment-1420</link>
		<dc:creator>Thom Brooks</dc:creator>
		<pubDate>Fri, 13 Jan 2006 16:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.martingordon.org/blog/2005/11/30/firefox-15-and-tabbed-browsing-on-os-x/#comment-1420</guid>
		<description>Darnit, there's an even simpler solution:

gBrowser.mTabContainer.advanceSelectedTab(1,true);
gBrowser.mTabContainer.advanceSelectedTab(-1,true); 

The second argument to the function, which defaults to false, specifies that you want to loop back and forth when you cycle through tabs.

Still, it was a fun programming exercise and taught me about using the DOM Inspector to look at xbl bindings. Firefox is a pretty cool app.</description>
		<content:encoded><![CDATA[<p>Darnit, there&#039;s an even simpler solution:</p>
<p>gBrowser.mTabContainer.advanceSelectedTab(1,true);<br />
gBrowser.mTabContainer.advanceSelectedTab(-1,true); </p>
<p>The second argument to the function, which defaults to false, specifies that you want to loop back and forth when you cycle through tabs.</p>
<p>Still, it was a fun programming exercise and taught me about using the DOM Inspector to look at xbl bindings. Firefox is a pretty cool app.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thom Brooks</title>
		<link>http://www.martingordon.org/blog/2005/11/30/firefox-15-and-tabbed-browsing-on-os-x/comment-page-1/#comment-1415</link>
		<dc:creator>Thom Brooks</dc:creator>
		<pubDate>Fri, 13 Jan 2006 02:56:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.martingordon.org/blog/2005/11/30/firefox-15-and-tabbed-browsing-on-os-x/#comment-1415</guid>
		<description>Your 'next tab' code and mine were pretty much word for word, but here's a slight improvement on the 'previous' code. HTH.

// previous tab, cycle to last one if at beginning
if(gBrowser.mCurrentTab.previousSibling)
{
	gBrowser.mTabContainer.advanceSelectedTab(-1);
}
else
{
	// call method to go to tab:
	gBrowser.mTabContainer.selectedIndex = gBrowser.mTabContainer.childNodes.length-1;
}


Thom Brooks
Chicago, IL</description>
		<content:encoded><![CDATA[<p>Your &#039;next tab&#039; code and mine were pretty much word for word, but here&#039;s a slight improvement on the &#039;previous&#039; code. HTH.</p>
<p>// previous tab, cycle to last one if at beginning<br />
if(gBrowser.mCurrentTab.previousSibling)<br />
{<br />
	gBrowser.mTabContainer.advanceSelectedTab(-1);<br />
}<br />
else<br />
{<br />
	// call method to go to tab:<br />
	gBrowser.mTabContainer.selectedIndex = gBrowser.mTabContainer.childNodes.length-1;<br />
}</p>
<p>Thom Brooks<br />
Chicago, IL</p>
]]></content:encoded>
	</item>
</channel>
</rss>

