Displaying 20 results from an estimated 8000 matches similar to: "auto_complete_field Vs text_field_with_auto_complete"
2010 Jan 09
0
auto_complete_field does not update display:none
Hi,
text_field_with_auto_complete works.
auto_complete_field almost works, the only problem is that it does not
update the display:none default attribute of the div that receives the
results. So the results are there, but I can''t see them.
I compared both html, and they look the same. Only CSS differs, but
updating the display:none should only happen in the javascript code.
Who ran
2006 May 23
2
auto_complete_field help
Not sure what I am doing wrong. Here is what i am trying to do (code
to follow).
I have a form to create a new book. This book can have many authors
and I wanted to be able to add the authors based on if they appear in
the authors table. I originally was going about it a long and arduous
way where I had several forms. After thinking about it I decided to
dynamically add new fields to
2006 Jun 02
2
pass extra value through text_field_with_auto_complete?
Hi,
I''m wondering if it is possible to pass an extra value (which I will
use to further restrict my query) using text_field_with_auto_complete?
Any suggestions would be appreciated!
-Mike
2008 Jan 03
0
remote_form_for with auto_complete_field
Hi friends
I have problem with auto_complete_field.
I have used auto_complete_field with in the remote_form_for.
But when we enter the text in auto_complete_field two actions are
calling
1. auto_complete_field action
2. remote_form_for action
I need to restrict the form action when we enter text on
auto_complete_field
Could u give any ideas?
<div
2005 Dec 20
1
Can''t use mouseover with auto_complete_field
Good afertnoon.
I''m trying to use a mouse over event:
Event.observe("name_auto_complete", "mouseover",
function(){alert("auto_complete")} );
with the auto_complete_field bellow.
<%= text_field_tag("name") %>
<%= content_tag("div", "", "id" => "name_auto_complete") %>
<%=
2006 Aug 10
0
Hrm, :after on auto_complete_field helper ?
Okay, urm, here is the problem :)
I have an auto_complete field that gets back a set of three values, so,
ideally, I thought I would put the :after tag on the
auto_complete_field, use a little custom javascript function that splits
it up and flings it into the other values, except, call me stupid, but,
auto_complete_field doesn''t have an :after tag ? At least, I can''t see
2006 Mar 10
0
auto_complete_field, :on_hide woes
Hi,
I have auto_complete working generating a list and populating a text
box in a form. The problem arises when I add the :on_hide option as
follows:
<%= auto_complete_field "search",
{ :url => {:action => "search"}, :on_hide => "foo($(''selected_uid''),
$(''search_list''))"} > %>
:on_hide makes everything stop
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
2005 Dec 21
1
How do you use :on_hide in auto_complete_field?
I''m trying to get some auto_complete_field stuff going, and I have them
working for the most part, but I can''t quite get how the :on_hide option
works. I''m hoping that I can populate a hidden field with the id of the
chosen record with it...is that going to be possible? Thanks for your
help.
--
Posted via http://www.ruby-forum.com/.
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
2009 Jul 10
3
text_field_with_auto_complete
I need to pass a parameter in my text_field_with_auto_complete and am
struggling to discover how to do this. I have something like this:
<%= text_field_with_auto_complete ''user'', ''username'', {}, {:with =>
"''post=''@company_title.id"} %>
but because it is in a partial that pops as a result from a
remote_function_tag, I am
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
2007 Jan 11
2
text_field_with_auto_complete() - problem
hello rubys,
i got a problem with the text_field_with_auto_complete().
everthing''s working but unfortunately the items (which are for choosing)
are filled into the input=text in a way that is unacceptable.
the first 6 characzers are empty-spaces, than the item and at last 5
empty-spaces.
doeas anybody know why? and maybe how to solve this problem?
my code is following:
view:
2006 Jul 11
0
text_field_with_auto_complete problem
hello all,
I am trying to get a customized text_field_with_auto_complete working
where the generated dropdown will display not only the list of teams
(first line), but also their city and country(second line).
In my view, I have:
<p>
<label for="team_name">Team: </label>
<%= text_field_with_auto_complete :team, :name, {}, :skip_style => true
%>
2006 Jun 16
0
text_field_with_auto_complete question
First let me say that Im very new to rails, but Im a solid PHP
programmer & Im very much enjoying the transition and working with such
a nice framework. That said, Ive had my ups and downs over the past few
weeks, such is to be expected as part of the learning process, but Ive
run into a sort of brick wall, at least for my experience level.
I am using the acts_as_taggable plugin in
2006 Jun 21
0
text_field_with_auto_complete broken in firefox?
I am seeing a problem with text_field_with_auto_complete in which the input
does not get populated with the selected value, but only in firefox (1.5.0.4).
Works in IE just fine. I have a super-simple mockup that shows this problem
below. Can anyone please confirm for me that this does/does not work in
firefox or point out my mistake? I''m wondering if I need to submit a bug?
The example
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,
2006 Apr 14
0
text_field_with_auto_complete and special characters
I have a problem with text_field_with_auto_complete. Everything works
fine except when I type special characters like ?,?,?. They are not
escaped. "oberver_field" has a with-option like this:
:with => "''ort='' + escape($F(''ort''))"
This works fine with umlauts, too. Is there a way to escape the user
input using
2006 Apr 27
0
text_field_with_auto_complete - NoMethodError in the model
Hey guys,
I have a text_field_with_auto_complete that looks like this:
<%= text_field_with_auto_complete ("service_request", "req_name",
{"size"=>40}) %>
which goes to this in the controller:
def auto_complete_for_service_request_req_name
auto_complete_responder_for_investigators
params[:service_request][:req_name]
end
2006 Mar 28
1
Passing the input name to "text_field_with_auto_complete"
I have a view with two auto complete input boxes. How do I give the
input a name like I can for "text_input" helper?
I''ve looked at the docs
(http://api.rubyonrails.com/classes/ActionView/Helpers/JavaScriptMacrosHelper.html#M000462)
but cant make sense of it...
<p><label for="search_start_station">From</label><br/>
<%=