Digimage
2007-Jul-02 00:28 UTC
How do you grab the high lighted value from auto_complete_field after "Enter" event
Any Help is appreciated..... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Perry Smith
2007-Jul-02 03:53 UTC
Re: How do you grab the high lighted value from auto_complet
Digimage wrote:> Any Help is appreciated.....I had trouble with that last night too. You need the right css to make it work. I went to the script.aculo.us web site and found the demo page that uses the feature you are looking for. Then do a show page and the css is in the page directly. This is what I''m using... seems to work but I have not really looked at it. You can move up and down the list with arrow keys, then hit tab or return to select it. <style> div.auto_complete { width: 350px; background: #fff; } div.auto_complete ul { border:1px solid #888; margin:0; padding:0; width:100%; list-style-type:none; } div.auto_complete ul li { margin:0; padding:3px; } div.auto_complete ul li.selected { background-color: #ffb; } div.auto_complete ul strong.highlight { color: #800; margin:0; padding:0; } </style> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Digimage
2007-Jul-02 04:34 UTC
Re: How do you grab the high lighted value from auto_complet
thanks Perry.. I''ll give it a shot.. On Jul 1, 8:53 pm, Perry Smith <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Digimagewrote: > > Any Help is appreciated..... > > I had trouble with that last night too. You need the right css to make > it work. I went to the script.aculo.us web site and found the demo page > that uses the feature you are looking for. Then do a show page and the > css is in the page directly. > > This is what I''m using... seems to work but I have not really looked at > it. You can move up and down the list with arrow keys, then hit tab or > return to select it. > > <style> div.auto_complete { > width: 350px; > background: #fff; > } > div.auto_complete ul { > border:1px solid #888; > margin:0; > padding:0; > width:100%; > list-style-type:none; > } > div.auto_complete ul li { > margin:0; > padding:3px; > } > div.auto_complete ul li.selected { > background-color: #ffb; > } > div.auto_complete ul strong.highlight { > color: #800; > margin:0; > padding:0; > } > </style> > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Digimage
2007-Jul-02 04:45 UTC
Re: How do you grab the high lighted value from auto_complet
So more Q... How do I grab that value and set it into params? it seems like auto_complete_textfield does not put that value into params automatically.... Any help is appreciated.. On Jul 1, 9:34 pm, Digimage <digim...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> thanks Perry.. I''ll give it a shot.. > > On Jul 1, 8:53 pm, Perry Smith <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > Digimagewrote: > > > Any Help is appreciated..... > > > I had trouble with that last night too. You need the right css to make > > it work. I went to the script.aculo.us web site and found the demo page > > that uses the feature you are looking for. Then do a show page and the > > css is in the page directly. > > > This is what I''m using... seems to work but I have not really looked at > > it. You can move up and down the list with arrow keys, then hit tab or > > return to select it. > > > <style> div.auto_complete { > > width: 350px; > > background: #fff; > > } > > div.auto_complete ul { > > border:1px solid #888; > > margin:0; > > padding:0; > > width:100%; > > list-style-type:none; > > } > > div.auto_complete ul li { > > margin:0; > > padding:3px; > > } > > div.auto_complete ul li.selected { > > background-color: #ffb; > > } > > div.auto_complete ul strong.highlight { > > color: #800; > > margin:0; > > padding:0; > > } > > </style> > > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Perry Smith
2007-Jul-02 12:57 UTC
Re: How do you grab the high lighted value from auto_complet
Digimage wrote:> So more Q... How do I grab that value and set it into params? > it seems like auto_complete_textfield does not put that value into > params automatically.... > > Any help is appreciated..Sounds like you do not have the fields named and labeled. Did you put a lable? Look at this example: http://demo.script.aculo.us/ajax/autocompleter_customized Good luck. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Digimage
2007-Jul-02 17:04 UTC
Re: How do you grab the high lighted value from auto_complet
Perry.. Thanks.. But i''m using auto_complete_field and not text_field_with_auto_complete... I think from the example.. text_field_with_auto_complete does it automatically.. but how do I feed the selected value into params when I''m using auto_complete_field. Any help is appreciated... On Jul 2, 5:57 am, Perry Smith <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Digimagewrote: > > So more Q... How do I grab that value and set it into params? > > it seems like auto_complete_textfield does not put that value into > > params automatically.... > > > Any help is appreciated.. > > Sounds like you do not have the fields named and labeled. Did you put a > lable? > > Look at this example: > > http://demo.script.aculo.us/ajax/autocompleter_customized > > Good luck. > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---