Displaying 20 results from an estimated 2000 matches similar to: "autocomplete for"
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, {} %>
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 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]"
2008 Jan 21
0
Help with pagintate
I have this code in Repair_Tickets_controller:
@repair_tickets = RepairTicket.paginate :per_page => 10, :page =>
params[:page],
:conditions => [''ID like ?'',
"%#{params[:search]}%"],
:order => ''id DESC''
And this code in Incidences controller:
2007 Jul 11
10
autocomplete in array
Experts,
have you figure it out with autocomplete to pass as array objects?
still i''m finding out the way to figure. :(
regards,
Bala
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
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
2009 Jun 18
1
undefined method `text_field_with_auto_complete'
Dear all:
I got the error in my rails 2.2.2 project on ma os x leopard. i did
as follow:
script/plugin install auto_complete
but when i start the server and try to approach the page which used
the auto_complete, it can''t find the helper method as the error told:
"undefined method `text_field_with_auto_complete'' ", than i try this
in script/console
helper.methods
i
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 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 Jun 12
11
auto_complete with multiple params
I''m using the auto_complete plugin, and it works great, my problem is i
need to pass multiple parameters to the controller other that what is
typed in the text field.
<%= text_field_with_auto_complete :search, :contains, :size => 15,
:frequency => 0.1, :skip_style => true -%>
This is what i have as of now, but i also need to pass ":language =>
@default"
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
2005 Dec 29
3
Post problem with select lists
hey,
i have this problem
how come i always get -1 for the select list??
rhtml
First, select a client.
<select id="client_id" name="client[id]" onChange="submit();" >
<%= options_for_select(@client_options, @client_id.to_i) %>
</select><%= @client_id %>
controller
if @request.post?
if @request.xml_http_request? #called by ajax,
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 => {
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 Feb 08
2
compound conditions in find
can''t seem to find the right syntax for this...
/script/../config/../app/controllers/placements_controller.rb:155:
syntax error
:conditions => [["placements.client_id = ?",
params[:client_id] ] and "placements.discharge_date IS NOT NULL" ],
this part works...
:conditions => ["placements.client_id = ?", params[:client_id] ]
this is what I
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 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