Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
retrieving values from combo box
Jojo Mojo
11/6/2007 4:06:00 AM
<td><p align="right">Jul/10:</td>
<td><%= select_tag "jul10",
"<option>Y</option><option>N</option><option>R</option>" %></td>
At the moment, my html form displays this combo box the way i want it,
but it does not record down what the user has selected and save it to
the database
help please,
thanks!
--
Posted via
http://www.ruby-...
.
2 Answers
7stud --
11/6/2007 5:18:00 AM
0
Jojo Mojo wrote:
> <td><p align="right">Jul/10:</td>
> <td><%= select_tag "jul10",
> "<option>Y</option><option>N</option><option>R</option>" %></td>
>
> At the moment, my html form displays this combo box the way i want it,
> but it does not record down what the user has selected and save it to
> the database
>
Write your javascript to respond to the onchange event and then retrieve
the selected value. Then have your javascript send out an
XMLHttpRequest to the server and include the choice in the url.
Good luck!
--
Posted via
http://www.ruby-...
.
Arlen Cuss
11/6/2007 5:21:00 AM
0
Hi,
On Tue, 2007-11-06 at 13:06 +0900, Jojo Mojo wrote:
> <td><p align="right">Jul/10:</td>
> <td><%= select_tag "jul10",
> "<option>Y</option><option>N</option><option>R</option>" %></td>
>
> At the moment, my html form displays this combo box the way i want it,
> but it does not record down what the user has selected and save it to
> the database
>
> help please,
>
> thanks!
For your Ruby on Rails-related questions, please check out the
rubyonrails-talk mailing list:
http://groups.google.com/group/rubyon...
Meanwhile, you may receive a reply here, but this mailing list tends to
be for Ruby-specific questions.
Cheers,
Arlen
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
retrieving values from combo box
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password