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