Loading ...
Sorry, an error occurred while loading the content.
 

Re: [ydn-javascript] How to disable all TabView.Tabs

Expand Messages
  • Jing Ceawlin
    It works on my machine. Could you show me the complete code please?
    Message 1 of 4 , Jan 3, 2008
      It works on my machine. Could you show me the complete code please?

      On Jan 3, 2008 9:05 PM, Harri Vainola <harrivainola@...> wrote:

      thanks, hmmm... sounds good but it doesn't seem to work

      tab.set('label', i.toString());    // works ok
      tab.set('disabled', true);        // doesn't work, strange



      ----- Original Message ----
      From: Jing Ceawlin <zjply4000@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Thursday, January 3, 2008 2:41:26 PM
      Subject: Re: [ydn-javascript] How to disable all TabView.Tabs

      Try "tab.set('disabled', true)"

      On Jan 3, 2008 6:31 PM, harrivainola <harrivainola@ yahoo.com > wrote:

      Hi
      I have HTML markup page and I want to disable all tabs except first one.
      Why this code doesn't work?

      YAHOO.util.Event. onAvailable('demo', YAHOO.example. initTabs) ;

      initTabs : function() {
      var tabView = new YAHOO.widget. TabView('demo');
      var tabcount = tabView.get('tabs').length;
      for (var i=1; i<tabcount-1; i++) {
      var tab=tabView. getTab(i) ;
      tab.disabled= true; // problem row
      }
      }





      Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

    Your message has been successfully submitted and would be delivered to recipients shortly.