Click here to Skip to main content
15,908,264 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
iam using tabcontainer which has more then one tab panel. iam using javascript for that but its effecting only for first tabpanel its not effecting to others. please give me some solution how can i solve this problem.
Posted

1 solution

If you are using ajax tab container,
Try This in your tabchanged javascript

JavaScript
var container = $find('TabContainer1');  //your Tab container ID goes here
var activeTab = container.get_activeTabIndex(); 

// you can continue your function after this by uing the new active tab of the tab container.
function

If still you have any problem/doubt then please reply.
 
Share this answer
 
Comments
JeetendraGuru 26-Apr-12 1:35am    
Iam using this method

<script language="javascript" type="text/javascript">

function EnterTab(e) {
var intKey = window.Event ? e.which : e.KeyCode;


if (intKey == 13)
e.returnValue = false;
}
</script>

and calling on body tab

onkeydown="EnterTab(event);"

its working only for first tab

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900