Re: database update Combobox
- From: derek
- Date: Wed, 31 Oct 2007 07:49:57 -0500
On 10/31/2007 at 05:49:28, Clive_ <cliveswan@xxxxxxxxxxx> wrote:
<td> <select name="cboWFMasPointTenth"
onChange="TestWFMasPointTenthfunction(this.value)">
<option value=<%= rs.getInt(3)%> > </option>
<option value="1">Yes</option>
<option value="0">No</option>
<option value="-1">-</option>
</td>
<td> <%= rs.getInt(1)%> </td>
<td> <%= rs.getString(2) %> </td>
</tr>
The combobox will provide the user with a list. The selected value
will be read from the
database. If they change the value this will be updated in the list.
I believe that i need a session or event listner but have not idea how
to start.
Does anyone have a simple example or could provide a better
solution???
Thanks
Clive
Are you trying to take the value the user selects in the combobox and do something with it in the database?
Sorry but i still dont understand what your question is.
You have a javascript method attached to your combobox, but i dont see the code for that, so i dont know if you are submitting
a form? executing some ajax? doing some validation? with the javascript.
If you are trying to get the selected option from the combobox, then you have to either submit the form or use ajax.
Either way you will need to get the data to the server again. I do not see any code for processing that either.
.
- Follow-Ups:
- Re: database update Combobox
- From: Clive_
- Re: database update Combobox
- References:
- database update Combobox
- From: Clive_
- database update Combobox
- From: derek
- Re: database update Combobox
- From: Lew
- Re: database update Combobox
- From: Clive_
- database update Combobox
- Prev by Date: Re: How standard and interchangeable are XML config files?
- Next by Date: Re: Static imports in JSP pages
- Previous by thread: Re: database update Combobox
- Next by thread: Re: database update Combobox
- Index(es):
Relevant Pages
|