D
Dana
I have a form with a couple of dropdown fields. the dropdown fields
get the value from one table which is a reference table. The table
consists of 3 columns - type, id, name. An example would look like
this:
type id name
fruits AP apple
fruits GRA grapes
chocolate SNI snickers
chocolate MM m&m's
Currently, I have multiple sql statements to query the db for each
dropdown (Select * from tablename where type='fruits') using vbscript
(ms sql server database). My first question is, can i just use one
sql statement to grab everthing in the table and group them together,
how? the next question is, how do I convert a vbscript recordset to a
javascript array? I need to have the values on the client side so i
can do a dependent dropdown (i.e. if apple is selected in one
dropdown, MM needs to get selected).
get the value from one table which is a reference table. The table
consists of 3 columns - type, id, name. An example would look like
this:
type id name
fruits AP apple
fruits GRA grapes
chocolate SNI snickers
chocolate MM m&m's
Currently, I have multiple sql statements to query the db for each
dropdown (Select * from tablename where type='fruits') using vbscript
(ms sql server database). My first question is, can i just use one
sql statement to grab everthing in the table and group them together,
how? the next question is, how do I convert a vbscript recordset to a
javascript array? I need to have the values on the client side so i
can do a dependent dropdown (i.e. if apple is selected in one
dropdown, MM needs to get selected).