WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Need help on how to preselect TAB in Tab pane , C. Jason Wilson, July 23, 2004

Subject: Need help on how to preselect TAB in Tab pane From: C. Jason Wilson Date: July 23, 2004

I have tried to figure out how to preselect a tab many times on several different days. I simply can't do it. I am no java guru and that is why I love Tabpane.

I can not figure out how to preselect a tab. I have read through the post here and have seen the replys when others have asked. I do not understand the replys. I've read to use tabpane.setSelectedIndex() and I do not understand how to or where to even use it.

I have pasted all my web page code below. I am wanting to select the fourth tab which is named TabPage4. I've tried the code below and I get javascript error object does not support this property or method. Obviously I am leaving out some code that I don't know of or something. Again ,I am no java guru and I need help. Could somebody please add the missing code?

<link id="luna-tab-style-sheet" type="text/css" rel="stylesheet" href="../css/tab.webfx.css" />
<script type="text/javascript" src="../js/tabpane.js"></script>

<script type="text/javascript">
<!--
tabPane.setSelectedIndex('3');
//-->
</script>   

<table cellspacing="2" cellpadding="2" border="0" width=680>
<tr>
 <td><br>
<div class="tab-pane" id="tabPane">
 <div class="tab-page" id="tabPage1"> 
  <h2 class="tab">Broker Information</h2>
  <table width=100% height=320><tr><td valign=top>
  <cfinclude template="br_information.cfm">
  </td></tr></table> 
 </div>

 <div class="tab-page" id="tabPage2">
  <h2 class="tab">Agents</h2>
  <table width=100% height=320><tr><td valign=top>
  <cfinclude template="br_agents_tab.cfm">
  </td></tr></table>  
 </div> 

 <div class="tab-page" id="tabPage3">
  <h2 class="tab">Prospects</h2>
  <table width=100% height=320><tr><td valign=top>
  <cfinclude template="br_prospect_view.cfm">
  </td></tr></table>  
 </div> 

 <div class="tab-page" id="tabPage4">
  <h2 class="tab">Clients</h2>
  <table width=100% height=320><tr><td valign=top>
  <cfinclude template="br_client_list.cfm">
  </td></tr></table>  
 </div> 

</div>




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