Mc Ieong wrote:
> Chris Habgood wrote:
>> You can send it as a :with param.
>> 
>> concat auto_complete_field( f,
>>>           :frequency => 0.4,
>>>           :min_chars => 2,
>>>           :method => 'GET',
>>>           :url=>{:action=>'autocomplete_vc_cno'}, :with => " 'val=' + 
>>> this.value ",
>>>           :tokens => ',')
>>> end
> 
> Thanks a lot!


It should be:

concat auto_complete_field( f,
           :frequency => 0.4,
           :min_chars => 2,
           :method => 'GET',
           :url=>{:action=>'autocomplete_vc_cno'}, :with => " 'val=' + 
document.getElementById('" + f + "').value ",
           :tokens => ',')

Thanks!

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to