<?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: Using the TabView Control with My Dispatcher Plugin</title>
	<atom:link href="http://www.yuiblog.com/blog/index.php/2008/11/03/tabview-dispatcher/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yuiblog.com/blog/2008/11/03/tabview-dispatcher/</link>
	<description>The official blog of the YUI Project.</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:46:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: stalinz</title>
		<link>http://www.yuiblog.com/blog/2008/11/03/tabview-dispatcher/comment-page-1/#comment-596436</link>
		<dc:creator>stalinz</dc:creator>
		<pubDate>Thu, 16 Dec 2010 01:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/11/03/tabview-dispatcher/#comment-596436</guid>
		<description>hi.
example tab2 :
....

                   
                    
                        createToolBarComposeMail();
                    
                    
                    

                    

...
but function createToolBarComposeMail() not call.
I need help.
Thank!</description>
		<content:encoded><![CDATA[<p>hi.<br />
example tab2 :<br />
&#8230;.</p>
<p>                        createToolBarComposeMail();</p>
<p>&#8230;<br />
but function createToolBarComposeMail() not call.<br />
I need help.<br />
Thank!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nimesh</title>
		<link>http://www.yuiblog.com/blog/2008/11/03/tabview-dispatcher/comment-page-1/#comment-584544</link>
		<dc:creator>nimesh</dc:creator>
		<pubDate>Mon, 14 Sep 2009 13:42:25 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/11/03/tabview-dispatcher/#comment-584544</guid>
		<description>Hi Caridy,

I want to call HTMLpage specific Javascript function from yui tab.
the page is fetched from URL.

I have tried the your utilities.js way but it gives me &quot;access is denied&quot; Error evrytime.

I have also,set various browserlevel setting in IE but this doesnt work.
So can you tell me how can i solve this issue ASAP...</description>
		<content:encoded><![CDATA[<p>Hi Caridy,</p>
<p>I want to call HTMLpage specific Javascript function from yui tab.<br />
the page is fetched from URL.</p>
<p>I have tried the your utilities.js way but it gives me &#8220;access is denied&#8221; Error evrytime.</p>
<p>I have also,set various browserlevel setting in IE but this doesnt work.<br />
So can you tell me how can i solve this issue ASAP&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Parker</title>
		<link>http://www.yuiblog.com/blog/2008/11/03/tabview-dispatcher/comment-page-1/#comment-581505</link>
		<dc:creator>Matt Parker</dc:creator>
		<pubDate>Mon, 20 Apr 2009 18:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/11/03/tabview-dispatcher/#comment-581505</guid>
		<description>@Matt (myself!) OK, now the IE compatible version that doesn&#039;t depend on a for each loop:

var bodyTabView = new YAHOO.widget.TabView( &quot;bodytabs&quot; ); 
var bodyTabs = bodyTabView.get(&quot;tabs&quot;);

for ( t in bodyTabs ) {
  bodyTabs[t].set(&quot;dataSrc&quot; , bodyTabs[t].get(&quot;href&quot;) ); 
  bodyTabs[t].set(&quot;cacheData&quot; , true ); 
  YAHOO.plugin.Dispatcher.delegate( bodyTabs[t] ); 
 } 
bodyTabView.selectTab(0);</description>
		<content:encoded><![CDATA[<p>@Matt (myself!) OK, now the IE compatible version that doesn&#8217;t depend on a for each loop:</p>
<p>var bodyTabView = new YAHOO.widget.TabView( &#8220;bodytabs&#8221; );<br />
var bodyTabs = bodyTabView.get(&#8220;tabs&#8221;);</p>
<p>for ( t in bodyTabs ) {<br />
  bodyTabs[t].set(&#8220;dataSrc&#8221; , bodyTabs[t].get(&#8220;href&#8221;) );<br />
  bodyTabs[t].set(&#8220;cacheData&#8221; , true );<br />
  YAHOO.plugin.Dispatcher.delegate( bodyTabs[t] );<br />
 }<br />
bodyTabView.selectTab(0);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caridy Patino</title>
		<link>http://www.yuiblog.com/blog/2008/11/03/tabview-dispatcher/comment-page-1/#comment-581456</link>
		<dc:creator>Caridy Patino</dc:creator>
		<pubDate>Thu, 16 Apr 2009 19:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/11/03/tabview-dispatcher/#comment-581456</guid>
		<description>@Matt: nice job, it&#039;s always good to see people whom care about progressive enhancement.

One more thing (an update), dispatcher 2.1 is ready on github, and this time solving the issue with &quot;Anonymous Functions&quot;. Here is the source code:

http://github.com/caridy/bubbling-library/tree/c05b1e552fc3e8ae3fbd542c441c914ea8861cfe/2.0/build/dispatcher</description>
		<content:encoded><![CDATA[<p>@Matt: nice job, it&#8217;s always good to see people whom care about progressive enhancement.</p>
<p>One more thing (an update), dispatcher 2.1 is ready on github, and this time solving the issue with &#8220;Anonymous Functions&#8221;. Here is the source code:</p>
<p><a href="http://github.com/caridy/bubbling-library/tree/c05b1e552fc3e8ae3fbd542c441c914ea8861cfe/2.0/build/dispatcher" rel="nofollow">http://github.com/caridy/bubbling-library/tree/c05b1e552fc3e8ae3fbd542c441c914ea8861cfe/2.0/build/dispatcher</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Parker</title>
		<link>http://www.yuiblog.com/blog/2008/11/03/tabview-dispatcher/comment-page-1/#comment-581451</link>
		<dc:creator>Matt Parker</dc:creator>
		<pubDate>Thu, 16 Apr 2009 18:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/11/03/tabview-dispatcher/#comment-581451</guid>
		<description>Hi,

Thanks, this is v. helpful.

A little snippet in case it&#039;s of any use to anyone.  I&#039;ve got my tabs all from the html using progressive markup but with no content loaded initially.  This little loop goes through them and 1. sets the dataSrc to the href of the tab, and 2. uses the Dispatcher delegation to load all my lovely text editors, context menus, datatables...

// my TabView built from markup
 var bodyTabs = new YAHOO.widget.TabView( &quot;bodytabs&quot; );

// loop through the tabs
for each( t in bodyTabs.get( &quot;tabs&quot; ) ) {
  // set the dataSrc
  t.set(&quot;dataSrc&quot; , t.get( &quot;href&quot; ) ); 
  // use the Dispatcher
  YAHOO.plugin.Dispatcher.delegate ( t );
}

// and this loads the content of the first tab
bodyTabs.selectTab(0);</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks, this is v. helpful.</p>
<p>A little snippet in case it&#8217;s of any use to anyone.  I&#8217;ve got my tabs all from the html using progressive markup but with no content loaded initially.  This little loop goes through them and 1. sets the dataSrc to the href of the tab, and 2. uses the Dispatcher delegation to load all my lovely text editors, context menus, datatables&#8230;</p>
<p>// my TabView built from markup<br />
 var bodyTabs = new YAHOO.widget.TabView( &#8220;bodytabs&#8221; );</p>
<p>// loop through the tabs<br />
for each( t in bodyTabs.get( &#8220;tabs&#8221; ) ) {<br />
  // set the dataSrc<br />
  t.set(&#8220;dataSrc&#8221; , t.get( &#8220;href&#8221; ) );<br />
  // use the Dispatcher<br />
  YAHOO.plugin.Dispatcher.delegate ( t );<br />
}</p>
<p>// and this loads the content of the first tab<br />
bodyTabs.selectTab(0);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Les</title>
		<link>http://www.yuiblog.com/blog/2008/11/03/tabview-dispatcher/comment-page-1/#comment-546306</link>
		<dc:creator>Les</dc:creator>
		<pubDate>Fri, 30 Jan 2009 18:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/11/03/tabview-dispatcher/#comment-546306</guid>
		<description>Hi Caridy,
Is this the only way to load a Datatable in a tab?

I created a tab and then placed a div inside to hold the Datatable:

&lt;!-- tab 2 --&gt;
     


In my application, the content for the history tab is initially blank. The datatable is dynamically created only after a user does a search. When the search results return, I then populate the table:

...

var histClmnDefs = [
	            {key:&quot;request_date&quot;, label:&quot;Request Date&quot;, sortable:true},
{key:&quot;info_serv_desc&quot;, label:&quot;Requests&quot;, sortable:true, formatter:this.formatInfoServ},
	            {key: &quot;appoint_date&quot;, label:&quot;Appointment&quot;, sortable:true},
				{key: &quot;interp_date&quot;, label:&quot;Mid-Tier&quot;, sortable:true},
				{key: &quot;comments&quot;, label:&quot;Comments&quot;}
				{key: &quot;check&quot;, label:&quot;Delete&quot;, formatter:&quot;checkbox&quot;}
	        ];
			
			this.dsHistory = new YAHOO.util.DataSource(&quot;includes/controllers/dbActionController.php?&quot;+query);
	        this.dsHistory.responseType = YAHOO.util.DataSource.TYPE_JSON;
						this.dsHistory.responseSchema = {
				resultsList: &quot;Result&quot;,
	            fields: [&quot;request_id&quot;, &quot;request_date&quot;, &quot;appoint_date&quot;, &quot;service_date&quot;, &quot;interp_date&quot;, &quot;comments&quot;]
				
			};
	        
			this.dtHistory = new YAHOO.widget.DataTable(&quot;requestorHistory&quot;, histClmnDefs, this.dsHistory, {
                 selectionMode:&quot;single&quot;,
				 scrollable:true,
				 height:&quot;20em&quot;
            }); 
...

The problem I am having is that the Datable does not display. I can see in Firebug that the table is being created (with the data), but the only thing that appears on the screen is a vertical line where the left edge of the table begins.

I can also Inspect each column (in Firebug), so I know that the columns are there. 

Even more interesting, if I return data where the JSON record is malformed, the Datable does appear in the tab (all of the columns appear, but obviously no data).

I am not creating the script inside the tabbed content as in your above examples, so I am not loading an external html file. I just don&#039;t understand why the table does not appear on the screen even though it is obviously created (but does appear if there is a data error).

Thanks for you help.  Les.</description>
		<content:encoded><![CDATA[<p>Hi Caridy,<br />
Is this the only way to load a Datatable in a tab?</p>
<p>I created a tab and then placed a div inside to hold the Datatable:</p>
<p><!-- tab 2 --></p>
<p>In my application, the content for the history tab is initially blank. The datatable is dynamically created only after a user does a search. When the search results return, I then populate the table:</p>
<p>&#8230;</p>
<p>var histClmnDefs = [<br />
	            {key:"request_date", label:"Request Date", sortable:true},<br />
{key:"info_serv_desc", label:"Requests", sortable:true, formatter:this.formatInfoServ},<br />
	            {key: "appoint_date", label:"Appointment", sortable:true},<br />
				{key: "interp_date", label:"Mid-Tier", sortable:true},<br />
				{key: "comments", label:"Comments"}<br />
				{key: "check", label:"Delete", formatter:"checkbox"}<br />
	        ];</p>
<p>			this.dsHistory = new YAHOO.util.DataSource(&#8220;includes/controllers/dbActionController.php?&#8221;+query);<br />
	        this.dsHistory.responseType = YAHOO.util.DataSource.TYPE_JSON;<br />
						this.dsHistory.responseSchema = {<br />
				resultsList: &#8220;Result&#8221;,<br />
	            fields: ["request_id", "request_date", "appoint_date", "service_date", "interp_date", "comments"]</p>
<p>			};</p>
<p>			this.dtHistory = new YAHOO.widget.DataTable(&#8220;requestorHistory&#8221;, histClmnDefs, this.dsHistory, {<br />
                 selectionMode:&#8221;single&#8221;,<br />
				 scrollable:true,<br />
				 height:&#8221;20em&#8221;<br />
            });<br />
&#8230;</p>
<p>The problem I am having is that the Datable does not display. I can see in Firebug that the table is being created (with the data), but the only thing that appears on the screen is a vertical line where the left edge of the table begins.</p>
<p>I can also Inspect each column (in Firebug), so I know that the columns are there. </p>
<p>Even more interesting, if I return data where the JSON record is malformed, the Datable does appear in the tab (all of the columns appear, but obviously no data).</p>
<p>I am not creating the script inside the tabbed content as in your above examples, so I am not loading an external html file. I just don&#8217;t understand why the table does not appear on the screen even though it is obviously created (but does appear if there is a data error).</p>
<p>Thanks for you help.  Les.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caridy Patino</title>
		<link>http://www.yuiblog.com/blog/2008/11/03/tabview-dispatcher/comment-page-1/#comment-533077</link>
		<dc:creator>Caridy Patino</dc:creator>
		<pubDate>Sun, 21 Dec 2008 20:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/11/03/tabview-dispatcher/#comment-533077</guid>
		<description>Hey ls86,

Here is a working example:
http://www.bubbling-library.com/sandbox/yui2/tabview/markup-dynamic-static.html

There are two possible reasons why this particular code can fail:

1. You didn&#039;t included the YUI Connection Manager in your page.
2. You are trying to run the example locally, and you need a webserver in order to use the Browser AJAX capabilities.

Anyway, feel free to contact me directly to review your code.</description>
		<content:encoded><![CDATA[<p>Hey ls86,</p>
<p>Here is a working example:<br />
<a href="http://www.bubbling-library.com/sandbox/yui2/tabview/markup-dynamic-static.html" rel="nofollow">http://www.bubbling-library.com/sandbox/yui2/tabview/markup-dynamic-static.html</a></p>
<p>There are two possible reasons why this particular code can fail:</p>
<p>1. You didn&#8217;t included the YUI Connection Manager in your page.<br />
2. You are trying to run the example locally, and you need a webserver in order to use the Browser AJAX capabilities.</p>
<p>Anyway, feel free to contact me directly to review your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ls86</title>
		<link>http://www.yuiblog.com/blog/2008/11/03/tabview-dispatcher/comment-page-1/#comment-531614</link>
		<dc:creator>ls86</dc:creator>
		<pubDate>Thu, 18 Dec 2008 13:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/11/03/tabview-dispatcher/#comment-531614</guid>
		<description>Hi I have a doubt.Not with your dispatcher module but with one of your code snippets

     
           
    &lt;a href=&quot;#tab1&quot; rel=&quot;nofollow&quot;&gt;&lt;em&gt;Tab One Label&lt;/em&gt;&lt;/a&gt;    
                   
           
    Tab One Content

   

 
var myTabs = new YAHOO.widget.TabView(&quot;demo&quot;);
var tab2 = new YAHOO.widget.Tab({ 
  label: ‘Tab Two Label’, 
  content: ‘Loading, please wait…’,
  dataSrc: ‘tab2.html’  
})
myTabs.addTab( tab2 );
myTabs.addTab( new YAHOO.widget.Tab({ 
  label: ‘Tab Three Label’, 
  content: ‘Tab Three Content’ 
}));



the tabs are displayed.but in tab2 all i get is the &#039;page loading&#039; message but the page tab2.html doesnt actually load.

I have made sure that tab2.html is in the same directory as the file containing this snippet.

Any information you can provide would be of great help to me.
Thanks.

Also,I havent tried your library-reason being i got stuck at this snippet...I think your concept is great and really useful to a lot of people</description>
		<content:encoded><![CDATA[<p>Hi I have a doubt.Not with your dispatcher module but with one of your code snippets</p>
<p>    <a href="#tab1" rel="nofollow"><em>Tab One Label</em></a>    </p>
<p>    Tab One Content</p>
<p>var myTabs = new YAHOO.widget.TabView(&#8220;demo&#8221;);<br />
var tab2 = new YAHOO.widget.Tab({<br />
  label: ‘Tab Two Label’,<br />
  content: ‘Loading, please wait…’,<br />
  dataSrc: ‘tab2.html’<br />
})<br />
myTabs.addTab( tab2 );<br />
myTabs.addTab( new YAHOO.widget.Tab({<br />
  label: ‘Tab Three Label’,<br />
  content: ‘Tab Three Content’<br />
}));</p>
<p>the tabs are displayed.but in tab2 all i get is the &#8216;page loading&#8217; message but the page tab2.html doesnt actually load.</p>
<p>I have made sure that tab2.html is in the same directory as the file containing this snippet.</p>
<p>Any information you can provide would be of great help to me.<br />
Thanks.</p>
<p>Also,I havent tried your library-reason being i got stuck at this snippet&#8230;I think your concept is great and really useful to a lot of people</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lavanya</title>
		<link>http://www.yuiblog.com/blog/2008/11/03/tabview-dispatcher/comment-page-1/#comment-528456</link>
		<dc:creator>lavanya</dc:creator>
		<pubDate>Wed, 10 Dec 2008 06:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2008/11/03/tabview-dispatcher/#comment-528456</guid>
		<description>Awesome post!I just started learning YUI yesterday and I was looking around for a way to include a datatable in a tab when I stumbled upon your post.Thanks!</description>
		<content:encoded><![CDATA[<p>Awesome post!I just started learning YUI yesterday and I was looking around for a way to include a datatable in a tab when I stumbled upon your post.Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

