473,322 Members | 1,620 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,322 software developers and data experts.

No duplicates in three pulldowns

Me
Hi,

I've picked up some very useful JS on the WEB (free to use) which prevents
duplicates in a second pulldown if has been selected in the first and
vice-versa. The code is at
http://javascript.internet.com/forms/no-duplicates.html

The problem is I want to extend this over three pulldowns but don't know how
to do it.

Can anyone help?
Oct 31 '05 #1
2 1153
> The problem is I want to extend this over three pulldowns but don't know how
to do it.


create a function that compares pulldowns 1&2, then 2&3, then 1&3 using
the provided NoDupl function, then call that in your onchange instead
of the provided function.

function myNoDupl() {
// this prolly shouldn't be hardwired
list1 = document.getElementById('pulldown1')
list2 = document.getElementById('pulldown2')
list3 = document.getElementById('pulldown3')
NoDupl(list, list2);
NoDupl(list2, list3);
NoDupl(list1, list3);
}

Nov 1 '05 #2
Me
Thanks Joshie, but I'm afraid it didn't quite work and the results are a
little erratic in terms of the contents of the three pulldowns :¬)

I appreciate your help though and if you have any other ideas, please let me
know

TIA

"Joshie Surber" <jo**********@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
The problem is I want to extend this over three pulldowns but don't know
how
to do it.


create a function that compares pulldowns 1&2, then 2&3, then 1&3 using
the provided NoDupl function, then call that in your onchange instead
of the provided function.

function myNoDupl() {
// this prolly shouldn't be hardwired
list1 = document.getElementById('pulldown1')
list2 = document.getElementById('pulldown2')
list3 = document.getElementById('pulldown3')
NoDupl(list, list2);
NoDupl(list2, list3);
NoDupl(list1, list3);
}

Nov 1 '05 #3

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

Similar topics

1
by: Hans van Dijk | last post by:
Hi there, Is there anybody who knows were to find a javascript that does the trick of conditional pulldowns (3). Here is what i am looking for: When you select an item from the first...
3
by: Tony Young | last post by:
Hi, I have a multimap container. I want to eliminate all "duplicate" elements. By duplicate I mean something like (3, 4), (4, 3) and (4, 3), in which I want to eliminate any two of these...
0
by: Les Stout | last post by:
I am not a programmer, so please bear with me. I have 2 tables with part numbers on and other relevant information. the one list does not have duplicate numbers, but the other has sometimes...
2
by: Tempy | last post by:
I am not a programmer, so please bear with me. I have 2 tables with part numbers on and other relevant information. the one list does not have duplicate numbers, but the other has sometimes...
1
by: MHenry | last post by:
Hi, I have a table with duplicate records. Some of the duplicates need to be eliminated from the table and some need not. A duplicate record does not need to be eliminated if the one record...
11
by: Jerry | last post by:
Say a table has four fields: ID (PK) Field1 Field2 Field3 Field 1 is indexed as Yes(No Duplicates) When a duplicate is entered in Field1, nothing happens until you try to save the record then...
11
by: steve smith | last post by:
Hi I'm still having some problems getting my head round this language. A couple of things don't seem to work for me. First I am trying to obtan a count of the number of words in a sting, so am...
4
by: yin_n_yang74 | last post by:
I am new to SQL and SQL Server world. There must be a simple solution to this, but I'm not seeing it. I am trying to create a crystal report (v8.5) using a stored procedure from SQL Server...
7
by: john.cole | last post by:
I have searched all the groups I can, and I still haven't been able to come up the solution I need. I have the following problem. In my form named sbfrmSpoolList, I am entering a job, spool and...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.