Connecting Tech Pros Worldwide Help | Site Map

IE - problem with Tab Strip control rendered by aspx page?

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 4th, 2005, 11:35 AM
Pino Carafa
Guest
 
Posts: n/a
Default IE - problem with Tab Strip control rendered by aspx page?

I've designed an aspx page with a Tab Strip on it. The problem is that
unlike some of the simpler controls like text boxes and buttons and the
likes, this Tab Strip is rendered something like this:

<?XML:NAMESPACE PREFIX="TSNS" /><?IMPORT NAMESPACE="TSNS"
IMPLEMENTATION="/webctrl_client/1_0/tabstrip.htc" />
<TSNS:TabStrip id="tbDocInfo" tabindex="2" class="DataEntry"
onClick="tbDocInfo_Click();" selectedIndex="0"
tabDefaultStyle="cursor:default;font-family:Verdana;font-size:11px;color:black;background-color:#a29f96;text-align:center;border-bottom:thin
inset silver white;" tabHoverStyle="background-color:#777777;"
tabSelectedStyle="cursor:default;font-family:Verdana;font-size:10px;color:black;background-color:buttonface;;border-left:1px
outset;border-top:1px outset;border-right:thin outset darkgray
white;text-align:center;border-bottom:none;font-weight:bold;"
onSelectedIndexChange="JScript:document.Assessment List.__tbDocInfo_State__.value=event.index"
onwcready="JScript:try{document.AssessmentList.__t bDocInfo_State__.value=selectedIndex}catch(e){}"
style="height:24px;width:632px;Z-INDEX: 112; LEFT: 8px; POSITION:
absolute; TOP: 64px">

<TSNS:Tab ID="DocInfoTab" defaultStyle="width:35%;">Document
Information</TSNS:Tab>
<TSNS:Tab ID="CaseStageTab" defaultStyle="width:35%;">Case
Stages</TSNS:Tab>
<TSNS:Tab ID="ReportTab"
defaultStyle="width:30%;">Report</TSNS:Tab>

</TSNS:TabStrip>


All very well and good, but as a result you can't for example go and
get document.all.tbDocInfo and then look at its child nodes in order to
do something to one of the tabs - just to name one thing one might like
to do client-side. I can get at the tbDocInfo control and I can verify
that it finds the correct control by checking its outerHTML. But then
when I look at its childNodes it tells me there aren't any. (length ==
0)

Is there any way around this? My suspicion is that maybe I could
achieve more if I were to use the Namespace correctly? But I'm not sure
how.....

Thanks for your help

Pino


  #2  
Old November 4th, 2005, 07:25 PM
VK
Guest
 
Posts: n/a
Default Re: IE - problem with Tab Strip control rendered by aspx page?


Pino Carafa wrote:[color=blue]
> I've designed an aspx page with a Tab Strip on it.[/color]
<snip>[color=blue]
> All very well and good, but as a result you can't for example go and
> get document.all.tbDocInfo and then look at its child nodes in order to
> do something to one of the tabs - just to name one thing one might like
> to do client-side. I can get at the tbDocInfo control and I can verify
> that it finds the correct control by checking its outerHTML. But then
> when I look at its childNodes it tells me there aren't any. (length ==
> 0)
>
> Is there any way around this? My suspicion is that maybe I could
> achieve more if I were to use the Namespace correctly? But I'm not sure
> how.....[/color]

That was my suspicion too in the post I did here:
<http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/d1ae4172c5bcba46/0da38b3070962dd0>


The received feedback (see the thread) helps to fix the problem in a
round-around way by it doesn't solve the mistery. I'm searching through
the MSDN but till now I did not find any clear answer: how to address
collections from added namespaces (besides direct ID addressing).

Also please not that TabStrip web service officially declared as "not
supported" on current versions of IE. Microsoft suggests to use MPC
control instead:
<http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/behaviors/library/tabstrip/tabstrip_ovw.asp>

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.