AJAX Tool Kit Tab Control

  • Thread starter Thread starter ruffeo
  • Start date Start date
R

ruffeo

I made the changes in the ajax tool kit project (http://forums.asp.net/
p/1074319/1723688.aspx#1723688). Some how Visual Studio knows to pull
the newly complied dll because the tabs are showing up disabled
instead of hidden. My problem is I am trying to manipulate the tabs
through javascript on the client side. I am getting java error on this
statement:

document.getElementById('ctl00_ContentPlaceHolder1_TabControl').get_tabs()
[1].set_enabled(true);
It is says "Object doesn't support property or method".



I also have tried to change the enable property through this line of
code:

document.all("__tab_ctl00_ContentPlaceHolder1_TabControl_TabPanel1").Enabled
= true;

This doesn't cause an error, but it doesn't change the tab to enable.
I think the the style sheet is not changing for the tab panel. When I
check the value after this statement it is indeed true.



Can someone help me out with this.
 
you are trying to call tab component methods off the tabs html content
element, rather than the tabs actual javascript object component

try:

// enable second tab
$find('<%=myTab.ClientID%>').get_tabs()[1].set_enabled(true);


-- bruce (sqlwork.com)
 
Back
Top