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

Tabview....Error with GetTab Function...

Expand Messages
  • yuilib99
    While just trying the example on the Library page: Error: this.get(...) is null or not an object. From debugger this is the failure: getTab:function(K){return
    Message 1 of 1 , Dec 8, 2008
    • 0 Attachment
      While just trying the example on the Library page:

      Error: 'this.get(...) is null or not an object.

      From debugger this is the failure:

      getTab:function(K){return this.get("tabs")[K];}




      [%@ Language=VBScript %]
      [HTML]
      [HEAD]
      [/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]

      [body class="yui-skin-sam"]

      [script type="text/javascript"]
      var myTabs = new YAHOO.widget.TabView('tabs');
      var tab0 = myTabs.getTab(0);

      [/script]



      [div id="tabs" class="yui-navset"]
      [ul class="yui-nav"]
      [li][a href="#tab0"][em]Tab One Label[/em][/a][/li]
      [li][a href="#tab1"][em]Tab Two Label[/em][/a][/li]
      [li][a href="#tab2"][em]Tab Three Label[/em][/a][/li]
      [/ul]
      [div class="yui-content"]
      [div][p]Tab One Content[/p][/div]
      [div][p]Tab Two Content[/p][/div]
      [div][p]Tab Three Content[/p][/div]
      [/div]
      [/div]

      [/BODY]
      [/HTML]
    Your message has been successfully submitted and would be delivered to recipients shortly.