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

Re: [ydn-javascript] Re: TabView changing tabs programmatically

Expand Messages
  • Brian McCullough
    ... It turns out that there seems to be an issue with activeIndex. However, activeTab does have the correct value. var aTab = TabView.get( activeTab ); var
    Message 1 of 4 , Jun 30, 2009
    • 0 Attachment
      On Tue, Jun 30, 2009 at 04:17:17PM -0400, Brian McCullough wrote:
      >
      >
      > Unfortunately, I am trying to do the same thing without the HTML Markup,
      > but using JavaScript exclusively ( except for the Div to anchor things
      > to ).
      >
      > I thought that I could read the activeIndex variable and know what the
      > Current Tab was.


      It turns out that there seems to be an issue with activeIndex. However,
      activeTab does have the correct value.


      var aTab = TabView.get( 'activeTab' );
      var aIdx = TabView.getTabIndex( aTab );
      TabView.selectTab( aIdx );

      gives me what I needed


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