canadianjameson
07-14-2003, 06:08 PM
after many failed attempts, i come to you a sad and broken man
i've been trying to get one of the two following scripts to work, but so far to no avail. my goal is to have a user select an option from one menu on a form, and based on that selection, have the options in a second menu change to reflect options of their choice.
i.e: first menu = company name
second menu = products sold by THAT company.
user selects company, the second menu changes to reflect the products of that company.
i have found two script on this site that allows me to do that, but i cant get them working with my data.
this script is preferable as it uses less actual code, but i have one small problem: http://www.js-examples.com/example/?ex=290&mode=2
The problem is that if one company has 9 products, and another has 6, if the user selects the company with 6, it'll display 3 blank slots.
if ANYONE knowws how to hide blank slots, that answers my question right there.
i would have posted the code, but the link above contains it.
the second script DOES hide blank slots, but the code is so complicated that i dont know how to actually edit it. and i only need 2 menus, and this one has 3: http://www.js-examples.com/example/?ex=458&mode=2
if anyone can explain in baby steps where to put my own info.... that works too.
lastly, if anyone has a simpler way to do this,... by all means
thanks,
-- Jay
p.s, also, eventually i'm going to have to have an event occur depending on what the user chooses in the second menu... so if anyone knows how to do that then please add it :D
i've been trying to get one of the two following scripts to work, but so far to no avail. my goal is to have a user select an option from one menu on a form, and based on that selection, have the options in a second menu change to reflect options of their choice.
i.e: first menu = company name
second menu = products sold by THAT company.
user selects company, the second menu changes to reflect the products of that company.
i have found two script on this site that allows me to do that, but i cant get them working with my data.
this script is preferable as it uses less actual code, but i have one small problem: http://www.js-examples.com/example/?ex=290&mode=2
The problem is that if one company has 9 products, and another has 6, if the user selects the company with 6, it'll display 3 blank slots.
if ANYONE knowws how to hide blank slots, that answers my question right there.
i would have posted the code, but the link above contains it.
the second script DOES hide blank slots, but the code is so complicated that i dont know how to actually edit it. and i only need 2 menus, and this one has 3: http://www.js-examples.com/example/?ex=458&mode=2
if anyone can explain in baby steps where to put my own info.... that works too.
lastly, if anyone has a simpler way to do this,... by all means
thanks,
-- Jay
p.s, also, eventually i'm going to have to have an event occur depending on what the user chooses in the second menu... so if anyone knows how to do that then please add it :D