I have a combo box of names and below it, a data grid. What I would like to do is have the user select a name from the combo box, the page refreshes and the data grid populates with information based on the selected user. Is this easy to do? What's the code like that performs a page refresh on a control selection? Any help is definitely appreciate. Thanks. [ April 09, 2004: Message edited by: Tak Lee ]
Bear Bibeault
Author and opinionated walrus
Marshal
you can submit a form... onchange="document.form.name.submit()" then you can use the dropdown element's value to populate your grid
Warren Dew
blacksmith
Ranch Hand
Joined: Mar 04, 2004
Posts: 1328
posted
0
Within the <select> tag, add an onchange attribute that references a javascript function to reload the page or submit the form, something like <select onchange="javascript:submit_form()" ... >. It's good to add a "go" button that also submits the form for people who have javascript turned off.