473,414 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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

Nov 4 '05 #1
1 4433
VK

Pino Carafa wrote:
I've designed an aspx page with a Tab Strip on it. <snip> 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.....


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>

Nov 4 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Jeff S | last post by:
In a VB.NET code behind module, I build a string for a link that points to a JavaScript function. The two lines of code below show what is relevant. PopupLink = "javascript:PopUpWindow(" &...
2
by: Mark Goldin | last post by:
I'd like to build a .NET app. that will be a mixture .NET and conventional technologies. Here how I see it. 1. HTML pages are static (predesigned) pages. They use JavaScript to handle user...
12
by: CLEAR-RCIC | last post by:
Hi, I'm having problems setting focus to a textbox on a web user contol on an asp.net web page. The following script works on normal asp.net pages: <script language="javascript"> function...
7
by: sck10 | last post by:
Hello, I have the following sub in a class in my "App_Code" directory. The script is for setting focus on a particular control, but I get the error, "Name ClientScript Not declared". Also, I am...
0
by: Don | last post by:
I have a page that has several controls on it and the controls are shown or hidden during postback. I show and hide them using the visible property. When I use 'view source' in Internet Explorer...
2
by: verci | last post by:
Hi guys, sorry if this seems stupid but I'm a newbie, I'm running Windows XP Pro SP2, IE 7, VS2005, ASP.net 2.0 The problem is that I'm trying to display this news scroller made in a Javascript...
3
by: PJ6 | last post by:
Taken out of context I know this may seem like a strange thing to do, but just take this as an academic question if necessary... Calling methods on a persisted control that has been added to a...
4
by: archana | last post by:
Hi all, i am having one user control. what i want is to add javascript which will gets called on button click of user control. but user control is not working if i add javascript in user...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.