PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

AJAX Tool Kit Tab Control

 
 
ruffeo
Guest
Posts: n/a
 
      24th May 2007
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.

 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      25th May 2007
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)

ruffeo wrote:
> 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.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Which AJAX tool set? Hillbilly Microsoft ASP .NET 2 10th Dec 2008 09:47 PM
Re: Which AJAX tool set? Nathan Sokalski Microsoft ASP .NET 0 8th Dec 2008 10:50 PM
ajax accordion control broken in ajax 1.0 Andy B Microsoft ASP .NET 0 28th Nov 2007 06:49 PM
ASP.NET AJAX samples... I am looking for help with HoverMenu AJAX Toolbox control. JDeats Microsoft ASP .NET 1 5th Oct 2007 08:50 PM
Ajax control tool kit in asp project =?Utf-8?B?U3R1?= Microsoft ASP .NET 2 25th Jan 2007 08:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 AM.