[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2003-12-08
4
Medium Priority
?
808 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Author Comment

by:Steve Sirica
ID: 9899051
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 1000 total points
ID: 9899294
Hi SSirica:
 var xxx = document.getElementById("mpSvcs");
 alert(xxx.selectedIndex);

Answering with the above....

Dabas
0
 
LVL 4

Author Comment

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

Have a good one.
Steve
0
 
LVL 27

Expert Comment

by:Dabas
ID: 9900070
SSirica,
It certainly was!!!
Thanks, LOL!

Dabas
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

649 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