AJAX Tool Kit Tab Control

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.
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top