drop down question

drop down question

am 13.11.2007 16:23:14 von scott

This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C825DF.32E14D20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

On my page I have 3 drop downs that are populated with static data. When =
my user makes a selection in either drop down I want to show my HTML =
table associated with that drop down selection, also the data in my =
tables are all static.

For example.=20

if the user selects CAR - New in dropdown 1 I want to show a list of my =
new cars
if the user selects TRUCK in dropdown 2, I want to hide my CARS and show =
my TRUCK list
if the user selects BOATS - Fiberglass in dropdown 3, I want to hide (if =
shown) CARS, and TRUCKS and show my boat list.

For now all of the data is static (don't ask) so I need to do all of =
this on the client. Is there a way to do this either using JavaScript, =
Div tags, CSS, etc.


any help is apprecaited.

------=_NextPart_000_0006_01C825DF.32E14D20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



charset=3Diso-8859-1">




On my page I have 3 drop downs that are populated =
with static=20
data. When my user makes a selection in either drop down I want to show =
my HTML=20
table associated with that drop down selection, also the data in my =
tables are=20
all static.

 

For example.

 

if the user selects CAR - New in dropdown 1 I =
want to=20
show a list of my new cars

if the user selects TRUCK in dropdown 2, I want to =
hide my=20
CARS and show my TRUCK list

if the user selects BOATS - Fiberglass in dropdown =
3, I want=20
to hide (if shown) CARS, and TRUCKS and show my boat list.

 

For now all of the data is static (don't ask) so I =
need to do=20
all of this on the client. Is there a way to do this either using =
JavaScript,=20
Div tags, CSS, etc.

 

 

any help is apprecaited.

 


------=_NextPart_000_0006_01C825DF.32E14D20--

Re: drop down question

am 13.11.2007 17:14:00 von Anthony Jones

"Scott" wrote in message
news:%23lvIbkgJIHA.5208@TK2MSFTNGP04.phx.gbl...
>On my page I have 3 drop downs that are populated with static data. When my
>user makes a selection in either drop down I want to show my HTML table
>associated with that drop down selection, also the data in my tables are
all static.
>
>For example.
>
>if the user selects CAR - New in dropdown 1 I want to show a list of my new
cars
>if the user selects TRUCK in dropdown 2, I want to hide my CARS and show my
>TRUCK list
>if the user selects BOATS - Fiberglass in dropdown 3, I want to hide (if
shown) >CARS, and TRUCKS and show my boat list.
>
>For now all of the data is static (don't ask) so I need to do all of this
on the >client. Is there a way to do this either using JavaScript, Div tags,
CSS, etc.
>

Yes.

Although I'm a bit confused by the UI design, if each choice in each
dropdown is mutually exclusive with all the other choices why have multiple
dropdowns?

Give each table of data an ID attribute; give each table a
Class="displayable" attribute. Give each option in the Select(s) a value
which is the ID of the respective table.

In a