|
 |
asp_databases thread: inserting data in to menu by selectiong options from other menu.
Message #1 by omkarj@h... on Wed, 20 Feb 2002 08:18:12
|
|
hi,
i have created a from which load data in to a drop down from adata base,
eg. country name.
i have another menu which shows city names,
but it should load the city names when i select a particular country.
ie, when i click on a menu-1, it should load data in to menu-2
from data base.
Message #2 by "Ken Schaefer" <ken@a...> on Thu, 21 Feb 2002 14:13:01 +1100
|
|
Use the onChange event handler to invoke some javascript to post the
selected countryID back to the server. Use the country ID to get the
necessary Cities, and load them into a new select list.
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: <omkarj@h...>
Subject: [asp_databases] inserting data in to menu by selectiong options
from other menu.
: i have created a from which load data in to a drop down from adata base,
: eg. country name.
:
: i have another menu which shows city names,
: but it should load the city names when i select a particular country.
: ie, when i click on a menu-1, it should load data in to menu-2
: from data base.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Message #3 by Greg Griffiths <greg.griffiths@g...> on Wed, 20 Feb 2002 19:29:59 +0000
|
|
You can load all of this into a Javascript code block or a seperate JS file
and then Javascript to populate the other dropdowns. Otherwise, you will
have to submit the page / frame and handle it like that.
At 08:18 20/02/02 +0000, you wrote:
>hi,
>
>i have created a from which load data in to a drop down from adata base,
>
>eg. country name.
>
>i have another menu which shows city names,
>
>but it should load the city names when i select a particular country.
>
>ie, when i click on a menu-1, it should load data in to menu-2
>
>from data base.
>
>
|
|
 |