All Questions
40
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 ...
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" ...
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 ...
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 (...
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 "...
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 ...
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 ...
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)...
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) ...
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:
...
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 ...
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 ...
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 ...
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 ...
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;
});
$("...