similar to: Autocomplete - Search Multiple Tables

Displaying 20 results from an estimated 40000 matches similar to: "Autocomplete - Search Multiple Tables"

2006 Apr 11
4
text_field_auto_complete not working in IE?
Hi all, I''m looking for some insight on why my text_field_with_auto_complete might not work in Internet Explorer. I''m using it in a fairly simple way, without much customization. I''ve broken it down and made a test page at http://realty.colemanation.org/houses/test which shows the behavior I''m having problems with. For me on Windows XP this page works
2010 Jan 07
1
text field with autocomplete
Hey everybody, I am using text field with autocomplete in my posts new action. That works great. Response from autocompleter in firebug: POST http://localhost:3001/posts/auto_complete_for_tag_name 200 OK 68ms but if I use the same in edit action it fails and I got this error. POST http://localhost:3001/posts/781/auto_complete_for_tag_name 404 Not Found 81ms *** POSTS controller: *** def
2006 Apr 13
0
text_field_with_auto_complete and foreign characters
I need a form where the user must enter a city name. I would like to use an autocomplete_field for the city name, so I have the following code in my view: <%= text_field_with_auto_complete ''entry'', ''city_name'', :size => 40 %> and in my controller I have the method: def auto_complete_for_entry_city_name @cities = City.find(:all,
2009 Oct 29
0
Javascript in text field with autocomplete
If I am using the autocomplete plugin, and I have a text field specified in a form that incorporates autocomplete, such as: <%= text_field_with_auto_complete :doctor, :organization, :autocomplete => "off" %> how can I put javascript event handlers to if (e.g. keypress, onchange, etc.) ? WHat I really want to do is call a method in my controller if either: 1. The text field is
2006 May 22
0
(nebie) Autocomplete and many to one relationship?
All, I''m trying to get autocomplete to work for the first time. I''m not sure if I''m doing this right or not. I have a table where one of the fields is a employees name. I expect a relatively small collection of person''s names will be used. I created a simple employees table with just 2 fields: id, and name. Then in my main table I added a employee_id field
2006 May 30
0
autocomplete - updating 2 or more fields
I want to use autocomplete (text_field_with_auto_complete) to update several field s if a match is found. I.e. a user types something in the autocomplete field, a match is found, the application then goes and fetches some more values from the database and populates some fields on the form based on the match found. Has anybody done anything like this? Any advice very much appreciated. Many
2006 Feb 09
0
pass values with autocomplete textfield
Hi all, I have a simple app that has an autocomplete textfield in my view. I now want to be able to pass the value of a select to my controller when my auto_complete_for_location_name is called. My goal is to be able to filter the autocomplete results by the value of the select. My view code looks like this: <%= form_remote_tag :update => "search_results", :url => {
2006 Apr 01
1
piggybacking an action on an autocompleted field
Hi everybody, I''d like to add a custom action to be triggered after/when an autocompleted field has been/is beeing updated by the autocompletion process. I tried the obvious - a field observer -, but it doesn''t work (see code below). I know I could write the autocompletion code myself, but I wonder if there is a simpler/more elegant way? Any idea? TIA Alain The
2006 Aug 07
0
multiple text_field_with_auto_complete in IE/Opera
I have a text_field_with_auto_complete in _each_ row of my /list table. I use the autocomplete box in a row to update info in that row. I noticed that all of them get the same id and name attributes (user_uid and user[uid]). This doesn''t cause a problem in firefox 1.5 on windows. However on IE 6/Opera 9 I can only get autocomplete in the first box, and that box on
2006 Feb 13
1
autocomplete input field name
Hi All, I''m new to ruby on rails and I struggle with a problem in my first application. I searched the forum (and ofcourse google) but I think it is just an easy thing that nobody boughters to write down :) I am building a kind of library application for (fysical) books and e-books and later I want to add other functions like knowledge management. The problem: in the book show page
2006 May 03
0
Newbie Help
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works
2006 Aug 09
0
Two Autocompletes, make first value affect the second
I have two text_field_with_auto_complete text_field_with_auto_complete :user, :state text_field_with_auto_complete :user, :suburb The user fills in the text_field_with autocomplete... but then I want to filter the results in the suburb with the value they''ve just entered def auto_complete_for_user_suburb @suburbs = PostCode.find(:all, :conditions => ["lower(locality)
2006 Mar 13
2
Autocomplete broken after update to Rails 1.0
When I upgraded to 1.0, I broke autocomplete on a field. I''ve done everything that I can think of to fix the problem, but nothing has worked. I''m able to recreate a simple autocomplete from examples on the various tutorials, but my original code just will not work. <input id="incident_first_party_name" name="incident[first_party_name]"
2006 Feb 24
1
Autocompleter Problems
Hi, I''m trying to get autocomplete to work but have been having some problems. It seems that Ajax.Autocompleter(...) is not getting called. I''ve put in a alert in control.js: Autocompleter.Local = Class.create(); Autocompleter.Local.prototype = Object.extend(new Autocompleter.Base(), { initialize: function(element, update, array, options) { window.alert("GOT
2006 Aug 01
0
Custom Autocomplete Field - Making a field lowercase
I''m trying to humanize() the results that appear in the autocomplet drop down list. First i customised the controller. In the render line on the controller it is saying "i want to use locality on each of the @items". So locality is what i want to humanize". My ideas so far is to: Customise the PostCode object so that when auto_complete_result trys to call
2006 May 04
9
Help: wrong number of arguments (0 for 1)
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works fine,
2012 Apr 18
2
RoR - Search Forms with Checkboxes, display appropriate results
I have a form that allows me to search a hotel by city or name and by rating through radio buttons. It all works. However, my hotel model has_one :facility, this facility model is composed by several boolean fields (for example, roomservice:boolean restaurant:boolean and so on) The question is, I want to add checkbox fields for each facility I have and in the search form, when the user selects
2006 Mar 14
2
autocomplete using other models
I''ve asked this in various ways but I can''t seem to get much traction - my guess is because not many people are doing this. I am working in a controller/views called placements. Placements belongs_to :client I have a clients model/table - clients has_many :placements in placements/find...this works fine... <%= text_field_with_auto_complete :placement, :clwholename, {} %>
2006 Apr 17
1
Autocompleter to read value from hidden field
I have an autocomplete field with road names (looking up in a database with approx. 100,000 road names). To limit the number of roads, i want an extra input field where to put postal code. I''m currently using <%= text_field_with_auto_complete %> for the field. What is the best way in Rails to intercept the Ajax call and send the value of the postal_code field? (I guess I could do
2008 Jan 18
2
autocomplete for
I have this code in my view: <%= text_field_with_auto_complete :client, :name %> when I submit new, y get: "client"=>{"name"=>"MSO"} I want to get: "repair_ticket"=>{"client_id"=>"??"} My models are class Client < ActiveRecord::Base has_many :repair_tickets end class RepairTicket <