Hi, I''m a rails newbie in need for some help. I''d like to replace a dropdown on a form with a pop-up window where I can search for a record and then return the selected id for the original form. Is there anything like this available in rails? Does anyone have a tip? Thanks, Gabriel. -- Posted via http://www.ruby-forum.com/.
Look into the ajax autocompleter: http://api.rubyonrails.com/classes/ActionController/Macros/AutoComplete/ClassMethods.html it''s similar to what you''re describing but it assumes that you know what you''re looking for. Hammed On 8/18/06, Gabriel Perez <bogeaperez@gmail.com> wrote:> > Hi, I''m a rails newbie in need for some help. I''d like to replace a > dropdown on a form with a pop-up window where I can search for a record > and then return the selected id for the original form. > > Is there anything like this available in rails? Does anyone have a tip? > > Thanks, > Gabriel. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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/20060818/560d04a5/attachment.html
Hammed Malik wrote:> Look into the ajax autocompleter: > > http://api.rubyonrails.com/classes/ActionController/Macros/AutoComplete/ClassMethods.html > > it''s similar to what you''re describing but it assumes that you know what > you''re looking for. > > HammedThanks Hammed, this will help for sure. However for my case the pop-up would be usefull for the following scenario. Imagine a CRM application: -Create new contact -From within contact: search for company, if company doesn''t exist then create new company -Return company name and id to the contact form -Save contact. Using a pop-up I could search several fields and if the field doesn''t exist I may create it. Any ideas people? Thanks, Gabriel. -- Posted via http://www.ruby-forum.com/.