473,324 Members | 2,531 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,324 software developers and data experts.

Select routing by name?

If I have a select box such as...

<select name="pickMS" size="1" multiple
onchange="pickMagicSinewave (form) ; " >
<option selected value="XXXX">Select your Magic Sinewave here.</option>
<option value="BEF7">Best Efficiency -- 7 pulses per quadrant</option>
<option value="DF7">Delta Friendly -- 7 pulses per quadrant</option>
<option value="BBE7">Bridged Best Efficiency -- 7 pulses per
quadrant</option>

numeric positions are typically used to route to selected functions...

if ( form.pickMS[1].selected) { setupBeff7 (this.form) } ;
if ( form.pickMS[2].selected) { setupDelf7 (this.form) } ;
if ( form.pickMS[3].selected) { setupBrbe7 (this.form) } ;
This creates problems later when adding or removing features.
How can I key on the value field rather than the numeric position?

if ( form.pickMS["BBE7"].selected) { setupBrbe7 (this.form) } ;

does not seem to work.

--
Many thanks,

Don Lancaster voice phone: (928)428-4073
Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml email: do*@tinaja.com

Please visit my GURU's LAIR web site at http://www.tinaja.com
May 5 '07 #1
1 1157
On May 5, 1:14 pm, Don Lancaster <d...@tinaja.comwrote:
If I have a select box such as...
... onchange="pickMagicSinewave (form) ;
Why you are passing form ??
How can I key on the value field rather than the numeric position?
if ( form.pickMS["BBE7"].selected) { setupBrbe7 (this.form) } ;
sel=form.pickMS
if(sel.options[sel.selectedIndex].value=="BBE7")
//"do something"//
May 5 '07 #2

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

Similar topics

3
by: Shiv Agarwal | last post by:
Hi, I am writing a .NET application in C#. I have to display the routing table in some formatted NMS way. Anyhow the issue is that, whenever the routing table changes I want to get an event....
0
by: Wilfried Hoermann | last post by:
I'm trying to use WS-Routing to a Web Service which is protected by https and requiring Client Certificates Without Client Certificates it seems to work but with Client Certificates I get an 403...
1
by: Tom Weston | last post by:
Help I have created a report in access and wish to use a routing slip to email it to my line management, how can I do that? I have searched the web but not found a way to add a routing slip,...
1
by: Yi | last post by:
Hi folks, I need to route a SOAP message depends on a parameter in the request. The service request looks like: void MyWebServiceRequest(string TargetMachine) I want to run the service...
2
by: ricky | last post by:
Hi, I am student and I am doing a final year project on Zig-bee. I have to write low energy routing algorithms. I need to write routing algorithm for LEACH. If anybody can help with some links...
0
by: devidevi | last post by:
hello sir, i'm doing a project in Mobile Adhoc network in ns2 simulator i have to perform routing with AODV.. my problem is i have to disable certain nodes ( in a 20 node topology) from...
0
by: vince | last post by:
Until December, 31st, 2008 companies may obtain a free Developer License of the JOpt.NET Vehicle Routing Library The Vehicle Routing Initiative aims on software vendors that plan to incorporate...
0
by: vince | last post by:
Until December, 31st, 2008 companies may obtain a free Developer License of the JOpt.SDK Vehicle Routing Library The Vehicle Routing Initiative aims on software vendors that plan to incorporate...
0
by: shekharban | last post by:
Hi, Below is the raw socket program for sending routing header in ipv6 domain. My source address is fe80::21d:9ff:fe17:58c7 and destination address is fe80::21d:9ff:fe17:5d0e in the below...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.