Skip to main content

All Questions

55 votes
7 answers
36k views

How to set-up jquery-ui autocomplete in Rails

I need some help on how to implement a jquery-ui autocomplete in my Rails app. I want to add autocompletion to a text field where the user can enter in a customer name. As there can be hundreds of ...
Oscar's user avatar
  • 3,248
7 votes
2 answers
6k views

jQuery autocomplete - How to view item label but submit item value

I am totally new to javascript and am probably biting of more than I can chew, but I am trying to get the jQuery autcomplete widget working on my Rails site. I have a page called "links" ...
Oscar's user avatar
  • 3,248
7 votes
2 answers
3k views

Tagging with autocomplete in Rails

My (long, I apologize) question is a follow-on to: How to add tagging with autocomplete to an existing model in Rails? I am using acts-as-taggable-on and rails3-jquery-autocomplete, and trying to set ...
sscirrus's user avatar
  • 56.3k
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
3 votes
1 answer
2k views

Uncaught TypeError: this.source is not a function when using rails4-autocomplete

I'm currently trying to set up autocomplete on a search field. I am using the rails4-autocomplete gem. I've read the documentation here: https://github.com/peterwillcn/rails4-autocomplete and followed ...
Nic's user avatar
  • 191
3 votes
2 answers
3k views

jQuery UI Autocomplete with a JSON datasource generated from Rails - not working

I'm trying to set up an input tag with jquery autocomplete function, but it's doesn't work when Im referring to an external JSON data. It works perfectly, however, with local JSON-like array... Let me ...
sNiCKY's user avatar
  • 1,843
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
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
1 vote
1 answer
273 views

jquery auto complete plugin not working

I am trying to implement auto complete feature in my rails application.I am able to get print the array that i passed for the autocomplete.but the auto complete is not working. My controller code: ...
ramya's user avatar
  • 928
1 vote
2 answers
526 views

Why is autocomplete not sending a JSON request

I'm trying to use the Jquery-UI autocomple in my rails app. Inside of my application.js I have the line $j('#autocomplete').autocomplete({ source:'contexts/1.json' }); From what I read on the ...
Teddy's user avatar
  • 589
1 vote
1 answer
138 views

rails-jquery-autocomplete: list populated from instance is blank

I am trying to setup rails-jquery-autocomplete gem and I have the jquery-ui-rails gem installed. I have a "transactions" model that has names and I want to access that list of names as the ...
SupremeA's user avatar
  • 1,609
1 vote
0 answers
96 views

Profile image in Autocomplete Dropdown - Rails 4, Carrierwave

I'm trying to display a users profile image, along with their username in an autocomplete dropdown. The autocomplete functionality works fine, I'm just having trouble displaying the actual image in ...
Kraymer's user avatar
  • 13
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
1 vote
0 answers
550 views

How to format JSon for Jquery's Autocomplete

I'm writting an Autocomplete field using RoR and Jquery. When I call getJson: var aeropuertos; $.getJSON('web_services/get_airports', function(data) { aeropuertos = data; }); $("...
content01's user avatar
  • 3,185

15 30 50 per page