Solved

Getting the SelectedIndex of a IEWC:TABSTRIP in client Javascript?

Posted on 2003-12-08
4
786 Views
Last Modified: 2007-12-19
I know I'm sort of on the right track, but I just can't quite seems to get there.  I would like to find the current value of the SelectedIndex of an IEWC:TABSTRIP control.  Let's say I have something like the following:
<IEWC:TABSTRIP ID="tsTabs" RUNAT="server" TARGETID="mpTabs">
      <IEWC:TAB TEXT="Tab 1" ID="tab1" TARGETID="pv1"></IEWC:TAB>
      <IEWC:TAB TEXT="Tab 2" ID="tab2" TARGETID="pv2"></IEWC:TAB>
      <IEWC:TAB TEXT="Tab 3" ID="tab3" TARGETID="pv3"></IEWC:TAB>
</IEWC:TABSTRIP>
<IEWC:MULTIPAGE ID="mpTabs" RUNAT="server">
      <IEWC:PAGEVIEW ID="pv1" ALIGN="center">
      </IEWC:PAGEVIEW>
      <IEWC:PAGEVIEW ID="pv2" ALIGN="center">
      </IEWC:PAGEVIEW>
      <IEWC:PAGEVIEW ID="pv3" ALIGN="center">
      </IEWC:PAGEVIEW>
</IEWC:MULTIPAGE>

In client Javascript I would like to get which tab is the current tab?  I figured something like the following would work...I was wrong.
alert(document.Form1.elements("tsSvcs").SelectedIndex);
alert(document.Form1.elements("mpTabs").SelectedIndex);

Let's not concern ourself with why I'm doing this, or why aren't I doing this in server code.  Let's just solve the problem at hand.  If it's at all possible?

Thanks
Steve
0
Comment
Question by:Steve Sirica
  • 2
  • 2
4 Comments
 
LVL 4

Author Comment

by:Steve Sirica
Comment Utility
figured it out:
var xxx = document.getElementById("mpSvcs");
alert(xxx.selectedIndex);

anyone who answers with the above will get the points.
0
 
LVL 27

Accepted Solution

by:
Dabas earned 250 total points
Comment Utility
Hi SSirica:
 var xxx = document.getElementById("mpSvcs");
 alert(xxx.selectedIndex);

Answering with the above....

Dabas
0
 
LVL 4

Author Comment

by:Steve Sirica
Comment Utility
Had to be the easiest point you've ever made.

Have a good one.
Steve
0
 
LVL 27

Expert Comment

by:Dabas
Comment Utility
SSirica,
It certainly was!!!
Thanks, LOL!

Dabas
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now