How would I access the ajax tab index in javascript?
How would I add an auto scroll on the tab menus, so that when the page loads it loops through each tab in a loop?
Hi,
You can manipulate the tabContainer object on client side by finding a reference to it.
For instance:
var tc = $find("ClientIDOfTheTabContainer");
tc.get_tabIndex();
For more information about the functions and properties that tabContainer exposes, please refer to Tabs.js in the source code of AjaxControlToolkit.
I tried to accessing the tabcontainer using your example and it didn't work. I tried to access it adding the script block inside the body and in the head tag and neither worked. Do I have to register the script block with the page?
var tc = $find("TabContainer1_cllTabControl_7Tab_0");
alert(tc);
var tc = $find("TabContainer1");
alert(tc);
try this;
var tabContainer = $get('<%=TabContainer1.ClientID%>')
No comments:
Post a Comment