Skip to main content

All Questions

1 vote
2 answers
243 views

Jquery-UI's _render function not working in autocomplete

I am trying to use the autocomplete function in Jquery-UI. The backend seems to be working. It is printing out the correct objects and returning the correct json object, however, the _render function ...
user2871354's user avatar
0 votes
1 answer
54 views

What is the most professional way to implement autocomplete in Ruby on Rails?

I would like more to find out what approach is optimal. I would like to have a search form with a well-running autocomplete.
myf's user avatar
  • 185
0 votes
0 answers
104 views

Add parameter to rails3-jquery-autocomplete (now rails-jquery-autocomplete) in addition to "term"

When autocomplete sends the query string it contains a parameter of term. See here: Started GET "/nodes/autocomplete_user_first_name?term=Mi" for 127.0.0.1 Processing by NodesController#...
mike0416's user avatar
  • 461
0 votes
1 answer
371 views

Limit scope on rails-jquery-autocomplete (rails3-jquery-autocomplete) gem - where clause issue

There is a recommended solution and it seems to work. The issue is in my where clause and I'm not sure what's wrong. For reference, here is the solution(s): https://stackoverflow.com/a/7250426/...
mike0416's user avatar
  • 461
0 votes
1 answer
162 views

Ordering input by DESC breaks jQuery UI Autocomplete

I'm trying to input a table Page into jQuery UI Autocomplete. If I input it with Page.order('id ASC') it works perfectly, but if I input it with Page.order('id DESC') it breaks, even though the line ...
Jeff Caros's user avatar
0 votes
2 answers
1k views

Jquery ui autocomplete not working with rails 4.2

I'm working on a Rails 4.2 app (with Bootstrap) and trying to set up autocomplete in a text field. I'm following the Railscasts autocomplete association episode: My application.js looks like: //= ...
AarCee's user avatar
  • 863
1 vote
1 answer
974 views

How to customize jquery autocomplete 'No Search Result' message in Rails?

Here is the js code for jquery autocomplete in Rails 4.2 app: $(this).autocomplete({ minLength: 1, source: $(this).data('autocomplete-source'), select: function(event, ui) ...
user938363's user avatar
  • 10.2k
0 votes
1 answer
405 views

JSON for JQueryUI autocomplete - Rails

I'm working on an autocomplete form field and am having a little trouble formatting the JSON I want to pass into this. I'm using an ID field for the autocomplete, though the JSON is returning as ...
SRack's user avatar
  • 12k
0 votes
1 answer
207 views

How to fix this jQuery/coffeescript code for jquery-ui autocomplete?

Hi so I have code like for jquery-ui 1.11: jQuery -> $('#search_terms').autocomplete source: (request, response) -> $.ajax url: '/list.json' dataType: "json" ...
Nona's user avatar
  • 5,402
0 votes
1 answer
2k views

css of jquery ui autocomplete not being applied

I'm trying to implement jQuery ui's autocomplete. It's working, except that the css isn't being applied. 1) The list of colleges that appears is styled like a normal ul. 2) "11 results are available, ...
Adam Zerner's user avatar
  • 18.6k
0 votes
1 answer
374 views

Rails autocomplete on multiple categories

I am following Railscasts #399 to implement autocompletion in my search box using autocomplete from jquery-ui. However, I would also like to be able include which category each search suggestion ...
k_day's user avatar
  • 1,379
2 votes
2 answers
2k views

How to add link to all search below autocomplete popup in jQuery.ui.autocomplete?

I have search suggestion autocompletion using jQuery UI autocomplete plugin. http://jqueryui.com/autocomplete/ But how to add on the bottom of results popup item which behaves like on Quora(see below)...
tomekfranek's user avatar
  • 6,999
0 votes
1 answer
935 views

What's the event after selecting an entry in jquery autocomplete?

We have a rails 3.2.8 app with jquery autocomplete. The app should fire an event after user selects a customer name from the list (#invoice_customer_name_autocomplete). After selecting, an ajax change ...
user938363's user avatar
  • 10.2k
4 votes
2 answers
6k views

jQuery UI autocomplete field not submitting when pressing enter

I'm following the Railscast on this topic, and although the autocomplete feature works, I am unable to get it to submit the form when the user selects an item and presses enter. I have this (...
A4J's user avatar
  • 889
3 votes
3 answers
6k views

ruby on rails implement search with auto complete

I've implemented a search box that searches the "Illnesses" table and the "symptoms" table in my DB. Now I want to add auto-complete to the search box. I've created a new controller called "...
user429400's user avatar
  • 3,245

15 30 50 per page