homepage Welcome to WebmasterWorld Guest from 54.198.157.6
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
populating a second dropdown after the selection changes in the first
javascript question
natty




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

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

 

Mike12345




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

Hi, i just sent you something useful, so check your sticky :)

natty




msg:1479237
 3:16 pm on Mar 12, 2003 (gmt 0)

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

Mike12345




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

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?

natty




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

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 :)

Mike12345




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

ok, with help from a WildAngel, i think i got it now, so check your sticky :)

natty




msg:1479241
 3:26 pm on Mar 13, 2003 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved