hi, i have a situation where i have a list of options from which a user selects his options if its not in the list he/she selects Others/Not Present and a new textfield should pop up and the data entered there should be considered instead of dropdown. i have done this using javascript/dhtml but i was wondering how this can be done using pure rails i.e using some of the RoR apis?. i would appreciate if anyone helps me with this. warm regards gaurav v bagga -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060618/5e9c9107/attachment.html
On Monday, June 19, 2006, at 12:53 AM, gaurav bagga wrote:>hi, > >i have a situation where i have a list of options from which a user selects >his options if its not in the list he/she selects Others/Not Present and a >new textfield should pop up and the data entered there should be considered >instead of dropdown. > >i have done this using javascript/dhtml but i was wondering how this can be >done using pure rails i.e using some of the RoR apis?. > >i would appreciate if anyone helps me with this. > >warm regards >gaurav v bagga > > >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails >Why not try an auto_complete field? _Kevin -- Posted with http://DevLists.com. Sign up and save your mailbox.
Kevin, thanks for your reply , but i have started RoR a week back and i am really new what you said i didn''t get, well i will google around what you have said and try to find out the way, atleast i got an idea what to look for...... regards gaurav On 18 Jun 2006 19:48:29 -0000, Kevin Olbrich < devlists-rubyonrails@devlists.com> wrote:> > > On Monday, June 19, 2006, at 12:53 AM, gaurav bagga wrote: > >hi, > > > >i have a situation where i have a list of options from which a user > selects > >his options if its not in the list he/she selects Others/Not Present and > a > >new textfield should pop up and the data entered there should be > considered > >instead of dropdown. > > > >i have done this using javascript/dhtml but i was wondering how this can > be > >done using pure rails i.e using some of the RoR apis?. > > > >i would appreciate if anyone helps me with this. > > > >warm regards > >gaurav v bagga > > > > > >_______________________________________________ > >Rails mailing list > >Rails@lists.rubyonrails.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > > > > Why not try an auto_complete field? > > _Kevin > > -- > Posted with http://DevLists.com. Sign up and save your mailbox. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060619/a8749ce6/attachment.html
On Monday, June 19, 2006, at 10:56 AM, gaurav bagga wrote:>Kevin, >thanks for your reply , >but i have started RoR a week back and i am really new what you said i >didn''t get, >well i will google around what you have said and try to find out the way, >atleast i got an idea what to look for...... > >regards >gaurav > >On 18 Jun 2006 19:48:29 -0000, Kevin Olbrich < >devlists-rubyonrails@devlists.com> wrote: >> >> >> On Monday, June 19, 2006, at 12:53 AM, gaurav bagga wrote: >> >hi, >> > >> >i have a situation where i have a list of options from which a user >> selects >> >his options if its not in the list he/she selects Others/Not Present and >> a >> >new textfield should pop up and the data entered there should be >> considered >> >instead of dropdown. >> > >> >i have done this using javascript/dhtml but i was wondering how this can >> be >> >done using pure rails i.e using some of the RoR apis?. >> > >> >i would appreciate if anyone helps me with this. >> > >> >warm regards >> >gaurav v bagga >> > >> > >> >_______________________________________________ >> >Rails mailing list >> >Rails@lists.rubyonrails.org >> >http://lists.rubyonrails.org/mailman/listinfo/rails >> > >> >> Why not try an auto_complete field? >> >> _Kevin >> >> -- >> Posted with http://DevLists.com. Sign up and save your mailbox. >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails >take a look at this... http://script.aculo.us/demos/ajax/autocompleter And then look in the rails API for ''auto_complete_for'' and ''text_field_with_auto_complete'' _Kevin -- Posted with http://DevLists.com. Sign up and save your mailbox.