Connecting Tech Pros Worldwide Help | Site Map

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

Pino Carafa
Guest
 
Posts: n/a
#1: Nov 4 '05
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

VK
Guest
 
Posts: n/a
#2: Nov 4 '05

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>

Closed Thread