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

Re: [ydn-javascript] How to use dataSrc tab configuration attributes with html markup approach of yui tabview

Expand Messages
  • Jatinder Singh
    Hi, When I create the tabs using javascript and then try to do following then it works, var tabView = new YAHOO.widget.TabView ( demo ); //Where demo is a
    Message 1 of 4 , Apr 4, 2007
      Hi,

      When I create the tabs using javascript and then try to do following then it works,

      var tabView = new YAHOO.widget.TabView
      ('demo'); //Where demo is a valid html element
      var secTab = tabView.getTab (1); //The second tab
      secTab.set('dataSrc', 'MY_URL');
      secTab.set('cacheData', true);

      however with markup approach, tabview doesn't give me reference to the tabs using above API :(


      Regards,
      Jatinder
      On 4/3/07, Jatinder Singh <jatinder.saundh@...> wrote:
      Hi Dav,
       
      Thanks for a reply.
      I tried your suggested code with the demo example that yui provides but I observe an error at following line
      var secTab = tabView.getTab(1); //The second tab,
       
      the error is "   this.get("tabs") has no properties ", it comes from tabview.js line no 181.
       
       
      Regards
      Jatinder


       
      On 4/3/07, dav.glass@... <dav.glass@...> wrote:

      Jatinder --

      I haven't tried this, but you "should" be able to do something like this:
      var tabView = new YAHOO.widget.TabView
      ('demo'); //Where demo is a valid html element
      var secTab = tabView.getTab(1); //The second tab
      secTab.set('dataSrc', 'MY_URL');
      secTab.set ('cacheData', true);
      Hope that helps 8-)
      Dav
       
      Dav Glass
      dav.glass@...
      blog.davglass.com


      + Windows: n. - The most successful computer virus, ever. +
      + A computer without a Microsoft operating system is like a dog
      without bricks tied to its head +
      + A Microsoft Certified Systems Engineer is to computing what a
      McDonalds Certified Food Specialist is to fine cuisine +


      ----- Original Message ----
      From: Jatinder Singh <jatinder.saundh@gmail.com >
      To: ydn-javascript@yahoogroups.com
      Sent: Tuesday, April 3, 2007 8:17:12 AM
      Subject: [ydn-javascript] How to use dataSrc tab configuration attributes with html markup approach of yui tabview

      Hi,


      I am using yui tabview component for drawing some tabs with dynamic content.
      Is there anyway I can specify dataSrc confguration parameter for
      various tabs as part of markup instead of creating tabs through
      javascript?



      Regards
      Jatinder



      Yahoo! Groups Links

      <*> To visit your group on the web, go to:
          http://groups.yahoo.com/group/ydn-javascript/

      <*> Your email settings:
          Individual Email | Traditional

      <*> To change settings online go to:
          http://groups.yahoo.com/group/ydn-javascript/join
          (Yahoo! ID required)

      <*> To change settings via email:
          mailto:ydn-javascript-digest@yahoogroups.com
          mailto: ydn-javascri pt-fullfeatured@yahoogroups.com


      <*> To unsubscribe from this group, send an email to:
          ydn-javascript-unsubscribe@yahoogroups.com

      <*> Your use of Yahoo! Groups is subject to:
          http://docs.yahoo.com/info/terms/

       

       



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