If you have an autocomplete and you have several text fields that have
the other columns from the db.
How do you autocomplete on a box and when you select it it fills in
the other text fields with the rest of the data from the table?
If you have an autocomplete and you have several text fields that have
the other columns from the db.
How do you autocomplete on a box and when you select it it fills in
the other text fields with the rest of the data from the table?
When the autocomplete value is selected do an ajax call to your
application returning the data you need to fill in using a format you
can parse in JavaScript like JSON and set the form values.
ok where do I do that at?
Chris H. wrote:
ok where do I do that at?
Have you tried googling for instructions?
When I try:
http://www.google.com/search?q=rails+autocomplete
The first hit is:
Seems to me to tell you exactly what you are asking.
Actually, sorry, that page indeed didn’t answer your question. Try this
one though. Googled for “rails autocomplete multiple values”
This is not something I’ve done myself before though, sorry.
WOW, that is cool. I cannot thank you enough. I guess I will learn to
google properly. Never though of asking for the obvious. DOH!!
On Sun, May 31, 2009 at 10:22 PM, Jonathan R. <
OK, pardon my ignorance I guess. Should I do set an instance variable
for the output then use that in the RJS to populate the rest of the
text_fields with the other data? Seems that is the way to go.
On May 31, 9:56 pm, Jonathan R. <rails-mailing-l…@andreas-
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs