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

REPOST: YUI tabView problem

Expand Messages
  • frazer.jin
    Hi, when I setup a tabView with a activeIndex parameter in the constructor, it seems not effective. I should set this one via
    Message 1 of 4 , Nov 23, 2008
    • 0 Attachment
      Hi,
      when I setup a tabView with a 'activeIndex' parameter in the
      constructor, it
      seems not effective.
      I should set this one via <tabView.set("activeIndex", tabId);>.
      I only see this issue in YUI 2.6.0, but it's fine with the previous
      version.

      any one can help me?

      Thanks in advance!


      <html>
      <head>
      <!-- Dependencies -->
      <!-- Sam Skin CSS for TabView -->
      <link rel="stylesheet" type="text/css"
      href="http://yui.yahooapis.com/2.6.0/build/tabview/assets/skins/sam/ta
      bview.css"\
      >

      <!-- JavaScript Dependencies for Tabview: -->
      <script type="text/javascript"
      src="http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-
      event.js"></\
      script>
      <script type="text/javascript"
      src="http://yui.yahooapis.com/2.6.0/build/element/element-beta-
      min.js"></script>

      <!-- OPTIONAL: Connection (required for dynamic loading of data) -->
      <script type="text/javascript"
      src="http://yui.yahooapis.com/2.6.0/build/connection/connection-
      min.js"></script\
      >

      <!-- Source file for TabView -->
      <script type="text/javascript"
      src="http://yui.yahooapis.com/2.6.0/build/tabview/tabview-
      min.js"></script>
      <script>
      var tabId = 1;
      function init(){
      var tabView= new YAHOO.widget.TabView("test",
      {activeIndex:tabId});
      //tabView.set("activeIndex", tabId);(must to set
      it)
      }
      </script>

      </head>
      <body class="yui-skin-sam" onload="init();">
      <div id="test" class="yui-navset"
      style="width:760px;">
      <ul class="yui-nav">
      <li class="selected"><a
      href="#tab1"><em>first</em></a></li>
      <li><a
      href="#tab2"><em>second</em></a></li>
      </ul>
      <div class="yui-content">
      <div>dddddddddddd</div>
      <div>eeeeeeeeeeee</div>
      </div>
      </body>
      </html>
    • Nate Koechley
      Hey frazer.jin, I looked into this and it does seem like this is a regression in TabView 2.6.0 from 2.5.2. It seems like the regression is in the tabview.js
      Message 2 of 4 , Nov 26, 2008
      • 0 Attachment
        Hey frazer.jin,

        I looked into this and it does seem like this is a regression in
        TabView 2.6.0 from 2.5.2. It seems like the regression is in the
        tabview.js file specifically because using all 2.6.0 prerequisites but
        the 2.5.2 version of tabview.js works.

        Here's an example where it's working using 2.6.0 prerequisites and
        2.5.2 tabview.js:
        http://yuiblog.com/sandbox/yui/v260/examples/tabview/activeindex.html

        And here's an example where it's broken using all 2.6.0 files:
        http://yuiblog.com/sandbox/yui/v260/examples/tabview/activeindex-regression.html

        Please open a bug so we can track this to conclusion and you can stay
        notified:
        http://sourceforge.net/tracker/?func=add&group_id=165715&atid=836476

        (And bug writing guidelines: http://developer.yahoo.com/yui/articles/reportingbugs/
        )

        Hope that helps.

        Thanks,
        Nate






        On Nov 23, 2008, at 5:24 PM, frazer.jin wrote:

        > Hi,
        > when I setup a tabView with a 'activeIndex' parameter in the
        > constructor, it
        > seems not effective.
        > I should set this one via <tabView.set("activeIndex", tabId);>.
        > I only see this issue in YUI 2.6.0, but it's fine with the previous
        > version.
        >
        > any one can help me?
        >
        > Thanks in advance!
        >
        >
        > <html>
        > <head>
        > <!-- Dependencies -->
        > <!-- Sam Skin CSS for TabView -->
        > <link rel="stylesheet" type="text/css"
        > href="http://yui.yahooapis.com/2.6.0/build/tabview/assets/skins/sam/ta
        > bview.css"\
        >>
        >
        > <!-- JavaScript Dependencies for Tabview: -->
        > <script type="text/javascript"
        > src="http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-
        > event.js"></\
        > script>
        > <script type="text/javascript"
        > src="http://yui.yahooapis.com/2.6.0/build/element/element-beta-
        > min.js"></script>
        >
        > <!-- OPTIONAL: Connection (required for dynamic loading of data) -->
        > <script type="text/javascript"
        > src="http://yui.yahooapis.com/2.6.0/build/connection/connection-
        > min.js"></script\
        >>
        >
        > <!-- Source file for TabView -->
        > <script type="text/javascript"
        > src="http://yui.yahooapis.com/2.6.0/build/tabview/tabview-
        > min.js"></script>
        > <script>
        > var tabId = 1;
        > function init(){
        > var tabView= new YAHOO.widget.TabView("test",
        > {activeIndex:tabId});
        > //tabView.set("activeIndex", tabId);(must to set
        > it)
        > }
        > </script>
        >
        > </head>
        > <body class="yui-skin-sam" onload="init();">
        > <div id="test" class="yui-navset"
        > style="width:760px;">
        > <ul class="yui-nav">
        > <li class="selected"><a
        > href="#tab1"><em>first</em></a></li>
        > <li><a
        > href="#tab2"><em>second</em></a></li>
        > </ul>
        > <div class="yui-content">
        > <div>dddddddddddd</div>
        > <div>eeeeeeeeeeee</div>
        > </div>
        > </body>
        > </html>
        >
        >
        >
        > ------------------------------------
        >
        > Yahoo! Groups Links
        >
        >
        >
      • frazer.jin
        Hi, Nate, To resolve this issue in 2.6.0, may I just replace the tabview-min.js with 2.5.2 version, does it have any impact on others? Or is there have any
        Message 3 of 4 , Nov 27, 2008
        • 0 Attachment
          Hi, Nate,

          To resolve this issue in 2.6.0, may I just replace the tabview-min.js
          with 2.5.2 version, does it have any impact on others?
          Or is there have any more effective idea?

          Thanks,
          Frazer.jin



          --- In ydn-javascript@yahoogroups.com, Nate Koechley <natek@...> wrote:
          >
          > Hey frazer.jin,
          >
          > I looked into this and it does seem like this is a regression in
          > TabView 2.6.0 from 2.5.2. It seems like the regression is in the
          > tabview.js file specifically because using all 2.6.0 prerequisites but
          > the 2.5.2 version of tabview.js works.
          >
          > Here's an example where it's working using 2.6.0 prerequisites and
          > 2.5.2 tabview.js:
          > http://yuiblog.com/sandbox/yui/v260/examples/tabview/activeindex.html
          >
          > And here's an example where it's broken using all 2.6.0 files:
          >
          http://yuiblog.com/sandbox/yui/v260/examples/tabview/activeindex-regression.html
          >
          > Please open a bug so we can track this to conclusion and you can stay
          > notified:
          > http://sourceforge.net/tracker/?func=add&group_id=165715&atid=836476
          >
          > (And bug writing guidelines:
          http://developer.yahoo.com/yui/articles/reportingbugs/
          > )
          >
          > Hope that helps.
          >
          > Thanks,
          > Nate
          >
          >
          >
          >
          >
          >
          > On Nov 23, 2008, at 5:24 PM, frazer.jin wrote:
          >
          > > Hi,
          > > when I setup a tabView with a 'activeIndex' parameter in the
          > > constructor, it
          > > seems not effective.
          > > I should set this one via <tabView.set("activeIndex", tabId);>.
          > > I only see this issue in YUI 2.6.0, but it's fine with the previous
          > > version.
          > >
          > > any one can help me?
          > >
          > > Thanks in advance!
          > >
          > >
          > > <html>
          > > <head>
          > > <!-- Dependencies -->
          > > <!-- Sam Skin CSS for TabView -->
          > > <link rel="stylesheet" type="text/css"
          > > href="http://yui.yahooapis.com/2.6.0/build/tabview/assets/skins/sam/ta
          > > bview.css"\
          > >>
          > >
          > > <!-- JavaScript Dependencies for Tabview: -->
          > > <script type="text/javascript"
          > > src="http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-
          > > event.js"></\
          > > script>
          > > <script type="text/javascript"
          > > src="http://yui.yahooapis.com/2.6.0/build/element/element-beta-
          > > min.js"></script>
          > >
          > > <!-- OPTIONAL: Connection (required for dynamic loading of data) -->
          > > <script type="text/javascript"
          > > src="http://yui.yahooapis.com/2.6.0/build/connection/connection-
          > > min.js"></script\
          > >>
          > >
          > > <!-- Source file for TabView -->
          > > <script type="text/javascript"
          > > src="http://yui.yahooapis.com/2.6.0/build/tabview/tabview-
          > > min.js"></script>
          > > <script>
          > > var tabId = 1;
          > > function init(){
          > > var tabView= new YAHOO.widget.TabView("test",
          > > {activeIndex:tabId});
          > > //tabView.set("activeIndex", tabId);(must to set
          > > it)
          > > }
          > > </script>
          > >
          > > </head>
          > > <body class="yui-skin-sam" onload="init();">
          > > <div id="test" class="yui-navset"
          > > style="width:760px;">
          > > <ul class="yui-nav">
          > > <li class="selected"><a
          > > href="#tab1"><em>first</em></a></li>
          > > <li><a
          > > href="#tab2"><em>second</em></a></li>
          > > </ul>
          > > <div class="yui-content">
          > > <div>dddddddddddd</div>
          > > <div>eeeeeeeeeeee</div>
          > > </div>
          > > </body>
          > > </html>
          > >
          > >
          > >
          > > ------------------------------------
          > >
          > > Yahoo! Groups Links
          > >
          > >
          > >
          >
        • Eric Miraglia
          Frazer.jin, Although we don t formally test mixed-version implementations, it s almost certain that what you re suggesting will be safe as a workaround until
          Message 4 of 4 , Dec 1, 2008
          • 0 Attachment
            Frazer.jin,

            Although we don't formally test mixed-version implementations, it's almost certain that what you're suggesting will be safe as a workaround until we get the bug fixed in a subsequent release.

            Please make a note on this thread if you find this not to be the case so that others who come across the same issue can learn from your experience.

            Regards,
            Eric

            On Nov 27, 2008, at 1:32 AM, frazer.jin wrote:

            Hi, Nate,

            To resolve this issue in 2.6.0, may I just replace the tabview-min. js
            with 2.5.2 version, does it have any impact on others?
            Or is there have any more effective idea?

            Thanks,
            Frazer.jin

            --- In ydn-javascript@ yahoogroups. com, Nate Koechley <natek@...> wrote:
            >
            > Hey frazer.jin,
            > 
            > I looked into this and it does seem like this is a regression in 
            > TabView 2.6.0 from 2.5.2. It seems like the regression is in the 
            > tabview.js file specifically because using all 2.6.0 prerequisites but 
            > the 2.5.2 version of tabview.js works.
            > 
            > Here's an example where it's working using 2.6.0 prerequisites and 
            > 2.5.2 tabview.js:
            > http://yuiblog. com/sandbox/ yui/v260/ examples/ tabview/activein dex.html
            > 
            > And here's an example where it's broken using all 2.6.0 files:
            >
            http://yuiblog. com/sandbox/ yui/v260/ examples/ tabview/activein dex-regression. html
            > 
            > Please open a bug so we can track this to conclusion and you can stay 
            > notified:
            > http://sourceforge. net/tracker/ ?func=add& group_id= 165715&atid= 836476
            > 
            > (And bug writing guidelines:
            http://developer. yahoo.com/ yui/articles/ reportingbugs/ 
            > )
            > 
            > Hope that helps.
            > 
            > Thanks,
            > Nate
            > 
            > 
            > 
            > 
            > 
            > 
            > On Nov 23, 2008, at 5:24 PM, frazer.jin wrote:
            > 
            > > Hi,
            > > when I setup a tabView with a 'activeIndex' parameter in the
            > > constructor, it
            > > seems not effective.
            > > I should set this one via <tabView.set( "activeIndex" , tabId);>.
            > > I only see this issue in YUI 2.6.0, but it's fine with the previous
            > > version.
            > >
            > > any one can help me?
            > >
            > > Thanks in advance!
            > >
            > >
            > > <html>
            > > <head>
            > > <!-- Dependencies -->
            > > <!-- Sam Skin CSS for TabView -->
            > > <link rel="stylesheet" type="text/css"
            > > href="http://yui.yahooapi s.com/2.6. 0/build/tabview/ assets/skins/ sam/ta
            > > bview.css"\
            > >>
            > >
            > > <!-- JavaScript Dependencies for Tabview: -->
            > > <script type="text/javascri pt"
            > > src="http://yui.yahooapi s.com/2.6. 0/build/yahoo- dom-event/ yahoo-dom-
            > > event.js"></ \
            > > script>
            > > <script type="text/javascri pt"
            > > src="http://yui.yahooapi s.com/2.6. 0/build/element/ element-beta-
            > > min.js"></script>
            > >
            > > <!-- OPTIONAL: Connection (required for dynamic loading of data) -->
            > > <script type="text/javascri pt"
            > > src="http://yui.yahooapi s.com/2.6. 0/build/connecti on/connection-
            > > min.js"></script\
            > >>
            > >
            > > <!-- Source file for TabView -->
            > > <script type="text/javascri pt"
            > > src="http://yui.yahooapi s.com/2.6. 0/build/tabview/ tabview-
            > > min.js"></script>
            > > <script>
            > > var tabId = 1;
            > > function init(){
            > > var tabView= new YAHOO.widget. TabView(" test",
            > > {activeIndex: tabId});
            > > //tabView.set( "activeIndex" , tabId);(must to set
            > > it)
            > > }
            > > </script>
            > >
            > > </head>
            > > <body class="yui-skin- sam" onload="init( );">
            > > <div id="test" class="yui-navset"
            > > style="width: 760px;">
            > > <ul class="yui-nav" >
            > > <li class="selected" ><a
            > > href="#tab1" ><em>first< /em></a>< /li>
            > > <li><a
            > > href="#tab2" ><em>second< /em></a>< /li>
            > > </ul>
            > > <div class="yui-content" >
            > > <div>dddddddddddd< /div>
            > > <div>eeeeeeeeeeee< /div>
            > > </div>
            > > </body>
            > > </html>
            > >
            > >
            > >
            > > ------------ --------- --------- ------
            > >
            > > Yahoo! Groups Links
            > >
            > >
            > >
            >


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