> Put an onChange handler on the 'make' popup that fires off a url in the > background. This returns some javascript that populates the 'models' popup > with all the matching models. It's a bit slower because you have to go
How does one do this (i.e. fire a url off in the background to populate a popup)? This would be incredibly useful to me but alas I do not know too much about javascript but am trying to learn as I get time. Regards Trevor on 6/6/02 5:23 PM, Dave Shelley at [EMAIL PROTECTED] wrote: > Jose, > > How you do this may depend on how much data you have. > > If it's not too much, say under 100 models, try this: > 1) define a method in a tcf to return an array of all makes and models > 2) call that and use the result to populate a javascript array > 3) put distinct makes in the first popup with an onChange handler > 4) your onChange handler loops through the javascript array and updates the > model popup with all the models that match the make > > If you have a lot of data, 100's of records or more, it's a little trickier. > Put an onChange handler on the 'make' popup that fires off a url in the > background. This returns some javascript that populates the 'models' popup > with all the matching models. It's a bit slower because you have to go back > the the server and database to populate the second popup, but still it's > kinda cool :) > > Dave. > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED]]On Behalf Of Jose Kuhn >> Sent: Thursday, June 06, 2002 2:28 PM >> To: Multiple recipients of list witango-talk >> Subject: Witango-Talk: Array => Pop Up Menu >> >> >> I want to create dynamic Pop up menus using Witango. Ie the user >> selects VW >> from the first menu and the second menu dynamically changes to >> Golf, Jetta, >> Passatt,...etc. >> >> What is the best way to handle this? >> >> Thanks >> >> Jose >> >> ________________________________________________________________________ >> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] >> with unsubscribe witango-talk in the message body > > ________________________________________________________________________ > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > with unsubscribe witango-talk in the message body -- Webologies 150 Robinette Drive Waynesville, NC 28786 828.627.1994 http://www.webologies.com __________________________________________________________________ Karen Sympathy: "Bullwinkle, Do you know how to repell?" Bullwinkle: " Why sure. We've been repelling audiences for years!" __________________________________________________________________ ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
