Dashboard > MonoRail > Home > PopulatingSelectsWithAjax
PopulatingSelectsWithAjax
Added by hamilton verissimo, last edited by hamilton verissimo on Apr 24, 2007
Labels: 
(None)


Work in progress.

There are many ways to implement automatic field population on some previous choice. You also need to consider the code to present the form for edition. Here we will use the [prototype] javascript library and the NVelocity view engine. The two example below show countries (full list always populated), state (disabled and only enabled when a country is selected) and city (disabled and only enabled when a state is selected).

Using Prototype and Element Observers

Using Prototype and the onchange event

Site running on a free Atlassian Confluence Community License granted to Castle Project. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators