To do this client side would probably involve sending a large array of all possible entries in select2 for each entry in select1 down to the client along with the javascript/DHTML functions to run through the array and populate select2 when select1 is changed...
Or You could look into remote scripting...this way there is a round trip to the server (without requiring a submit & visible page refresh to the user) when select1 is changed and that would return a long string (it doesn't do arrays to the best of my knowledge) that you can parse the long string looking for delimiters and populate select2 with javascript -----Original Message----- From: LeGrand Decius [mailto:legrandnews@;sovratec.com] Sent: Friday, November 08, 2002 11:35 AM To: ActiveServerPages Subject: Re: Client Site Select Filter Thanks for replying to my email. Select 1 has a list of categories (example Car Makes: Toyota, Honda, Ford, etc...). Select2 has a list of subcategories (example Car Models: Camry, Rav4, 4Runner, Land Cruiser, etc..) Based on the value from select1, I would like to populate select2. I can do this using server side scripts; however, I would prefer to run this at the client side. I hope this answers your questions. Thank you. ----- Original Message ----- From: "Chris Tifer" <[EMAIL PROTECTED]> To: "ActiveServerPages" <[EMAIL PROTECTED]> Sent: Friday, November 08, 2002 11:18 AM Subject: Re: Client Site Select Filter > Can you explain more about what you expect when you say Filter? > Does someone select an option, and depending on that option, it > removes possible options in Select2? > > Chris Tifer > > ----- Original Message ----- > From: "LeGrand Decius" <[EMAIL PROTECTED]> > To: "ActiveServerPages" <[EMAIL PROTECTED]> > Sent: Friday, November 08, 2002 11:06 AM > Subject: Client Site Select Filter > > > > Hello everyone, > > > > I have two select boxes on a page. How can I filter select2 based on > value > > of select1. > > > > I would like to keep this at the client level. > > > > I'm considering an array since both select boxes are populated from > > recordset. > > > > Any example would be appreciated. > > > > Thank you in advance. > > > > > > --- > > You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] > > To unsubscribe send a blank email to > %%email.unsub%% > > > > > --- > You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] > To unsubscribe send a blank email to %%email.unsub%% > --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
