Welcome to WebmasterWorld Guest from 50.16.112.199

Forum Moderators: open

populating a second dropdown after the selection changes in the first

javascript question

   
2:12 pm on Mar 12, 2003 (gmt 0)

10+ Year Member



hi all,

imagine if u will , afew dropdowns, wanting to be filled depending on the values of other ones.
what id like to able to do is to put my scripts on the select i want with an onchange, but it seems that the filling of the dropdown doesnt count as an onchange. what i really want is one filling of a dropdown by the selecting of another, and then in turn firing off another script to fill a subsequent dropdown etc....
i also have the problem that NS doesnt seem to like to do two functions from one onchage, which means wrting other functions purely with a call to two or more .. other functions..?

sorry if that sounds all a bit confusing, but then i am confused.. :)

cheers all

nathan

2:50 pm on Mar 12, 2003 (gmt 0)

10+ Year Member



Hi, i just sent you something useful, so check your sticky :)
3:16 pm on Mar 12, 2003 (gmt 0)

10+ Year Member



cheers mate
that was alot better written than mine :

but it doesnt get round the problem of filling a new dropdown , and then firing off the filling of another.. :s

cheers

nathan

3:21 pm on Mar 12, 2003 (gmt 0)

10+ Year Member



but then you have an onchange on the second box? i think thats what your trying to do? Are you trying to get the first box to change the content of the second box and then the second box determines the page that is loaded?

Or am i confusing matters?

3:38 pm on Mar 12, 2003 (gmt 0)

10+ Year Member



that is the problem dude..
yes i do want a tird box to fire from the second, but the onChange doesnt seem to pick up the filling of the empty dropdown as a change..
or am i missing something here?

thanks for your continued help :)

12:19 pm on Mar 13, 2003 (gmt 0)

10+ Year Member



ok, with help from a WildAngel, i think i got it now, so check your sticky :)
3:26 pm on Mar 13, 2003 (gmt 0)

10+ Year Member



yeah , just to add, as my initial question left alot to be desired.
i want to dynamically fill dropdowns in a domino type fashion

so pick somethign from the first , that fill the second, and then the third, depending on values from the first two, but NOT with the user having to select anything from the second..

as i may have said, the onchange on the second dropdown , is not triggered byt hte fact it has just been filled by dropdown #1. which is a shame.. :s

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month