Displaying 20 results from an estimated 90000 matches similar to: "autocomplete - updating 2 or more fields"
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
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
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 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 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 => {
2010 Jul 22
0
Autocomplete - Search Multiple Tables
I''m trying to implement Autocomplete on my site and allow customers to
search for restaurants by name or city all from one search box.
I can''t seem how to get one edit field to interact with Autocomplete
from multiple controllers. I can add the appropriate code into the
controllers to allow access on the page, but how would I modify:
<% text_field_with_auto_complete
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
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 Jan 10
0
Customizing autocomplete to update more than one value upon vaule select
Good day.
Currently I have a system that will successfully add a row to a table.
Each row in this table will represent a new product being added to a
purchase order.
The user can enter a quantity and then select a product code.
The product code is the auto_complete field. This field works.
However, once the user selects a product code then the values for the
product description, buy price, and
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
2007 Mar 19
0
Firefox Input Fields with Autocomplete=off
In FF 2.x if you turn off autocomplete on an input field it triggers an
undesired side effect. Pressing UP and DOWN now move the cursor to the left
and right. This only happens in FF and only with autocomplete off. This does
not play well with script.aculo.us AutoCompleters.
I need a way to force the cursor to the end of the input string whenever UP
or DOWN is pressed. Is this possible?
Thanks,
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)
2011 Mar 23
0
Implementing auto complete for more than one field in Rails
Hi,
I have an app, which implements a group feature. Each group has n
members. Also, each group has a group specific profile pic to it.
I have been able to implement auto complete for the group feature
keeping in mind the group name alone. I have referred to the following
tutorial for the same:- http://railsforum.com/viewtopic.php?id=23188
I am using **ruby 1.8.7** and **rails 2.0.2** for
2005 Oct 20
1
Autocomplete - Destroying the object
Hi,
I''m new to all this so if this is a daft question sorry.
I''m using Ajax Autocomplete to populate a search box with likely matches.
These results need to be filtered by an option from a select box that
is alongside the search box.
As the current Autocomplete function only takes in one id to post to
the search file, i figured i could post more stuff to the
Ajax.Autocompleter
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 Feb 18
0
question on text_field_with_auto_complete
Hi,
I have a tricky question about text_field_with_auto_complete. I''ve
created an admin section for a database of books and on each page
there is a form at the top with a single search field on the title of
books. So I''ve used:
<%= start_form_tag ({:controller => ''books'', :action => ''edit'' }) %>
<label
2012 Apr 09
0
Autocomplete text-field version of dynamic select menu?
I have a form for submission of brand, model, and style. Style
belongs_to model, and model belongs_to brand. The form is actually a
style submission form, but allows users to create new brands or models
as well, should they not exist.
What I want is for the autocomplete for ''model'' to populate when an
object for ''brand'' is selected in the first text field..
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, {} %>
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 <