WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 question about tab-panel, Louis, November 25, 2004

Subject: question about tab-panel From: Louis Date: November 25, 2004

How can I control which tabe to show first when the page load?

1 more question if I have 2 table, then which one is correct below:

function showArticleTab( sName ) {
   if (typeof tabPane != "undefined" ) {
   
    switch ( sName ) {
    
     case "memberlisting":
      tabPane.setSelectedIndex( 0 );
      break;
     case "grouplisting":
      tabPane.setSelectedIndex( 0 );
      break;
    } 
   }
  }

 

or

 

function showArticleTab( sName ) {
   if (typeof tabPane != "undefined" ) {
   
    switch ( sName ) {
    
     case "memberlisting":
      tabPane.setSelectedIndex( 0 );
      break;
     case "grouplisting":
      tabPane.setSelectedIndex( 1 );
      break;
    } 
   }
  }

 

Thanks

Louis




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX