473,770 Members | 6,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:NAMESPA CE PREFIX="TSNS" /><?IMPORT NAMESPACE="TSNS "
IMPLEMENTATION= "/webctrl_client/1_0/tabstrip.htc" />
<TSNS:TabStri p id="tbDocInfo" tabindex="2" class="DataEntr y"
onClick="tbDocI nfo_Click();" selectedIndex=" 0"
tabDefaultStyle ="cursor:defaul t;font-family:Verdana; font-size:11px;color :black;backgrou nd-color:#a29f96;t ext-align:center;bo rder-bottom:thin
inset silver white;" tabHoverStyle=" background-color:#777777;"
tabSelectedStyl e="cursor:defau lt;font-family:Verdana; font-size:10px;color :black;backgrou nd-color:buttonfac e;;border-left:1px
outset;border-top:1px outset;border-right:thin outset darkgray
white;text-align:center;bo rder-bottom:none;fon t-weight:bold;"
onSelectedIndex Change="JScript :document.Asses smentList.__tbD ocInfo_State__. value=event.ind ex"
onwcready="JScr ipt:try{documen t.AssessmentLis t.__tbDocInfo_S tate__.value=se lectedIndex}cat ch(e){}"
style="height:2 4px;width:632px ;Z-INDEX: 112; LEFT: 8px; POSITION:
absolute; TOP: 64px">

<TSNS:Tab ID="DocInfoTab " defaultStyle="w idth:35%;">Docu ment
Information</TSNS:Tab>
<TSNS:Tab ID="CaseStageTa b" defaultStyle="w idth:35%;">Case
Stages</TSNS:Tab>
<TSNS:Tab ID="ReportTab"
defaultStyle="w idth:30%;">Repo rt</TSNS:Tab>

</TSNS:TabStrip>
All very well and good, but as a result you can't for example go and
get document.all.tb DocInfo 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 4459
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.tb DocInfo 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.c om/group/comp.lang.javas cript/browse_frm/thread/d1ae4172c5bcba4 6/0da38b3070962dd 0>
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.as p>

Nov 4 '05 #2

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

Similar topics

12
9645
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(" & Chr(34) & PopUpWindowTitle & Chr(34) & ", " & Chr(34) & CurrentEventDetails & ")" strTemp += "<BR><A HREF='#' onClick='" & PopupLink & "'>" & EventName & "</A><BR>" The problem I have is that when the string variables or contain a string with an...
2
1288
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 interface. The user interface with data (tables, combos) is result of XSLT transformation. 2. The user submits requests to an ASPX page. For all business processing (data retrival, data manipulation and so forth) the aspx page calls a c# code
12
4908
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 cmdButton1_Clicked() { document.all('txtInput1').focus(); return false; }
7
4445
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 using MasterPages. How do I use "ClientScript.RegisterStartupScript" in a class? Public Shared Sub SetFocusControl(ByVal FocusControl As Control) Dim Script As New System.Text.StringBuilder Dim ClientID As String = FocusControl.ClientID
0
1319
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 I always see the source of the first version of the page, with the controls rendered that where rendered on the first visit. The changes that occur during postback are not reflected in 'view source'. Example Detail: My page has 6 controls and...
2
2184
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 file(newsscroller.js) in my ASP page, everything works great in a normal HTML page, I can see the scroller just fine, but in an ASP page it just does not show, I get some error message that the control has not been initialize, so far I've been...
3
1795
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 page that has been rendered and unloaded generates these exceptions - A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll A first chance exception of type 'System.Threading.ThreadAbortException' occurred...
4
4242
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 control.. but if i add javascript in page in which i am adding user control then that javascript is executed properly. i tested by displaying alert message in javascript. can anyone tell
5
13379
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 http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
0
9591
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10057
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10002
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8883
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3970
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.