Displaying 20 results from an estimated 2000 matches similar to: "Rails newbie question"
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
%>
2007 Jul 17
0
text_field_with_auto_complete :after_update_element not firing
I''m pretty new to ruby and rails and have been racking my brain for a
few hours on this one. I have set up a text_field_with_auto_complete
and it works great. It talks to my controller correctly, firing my
method that queries mySQL and returns a nice <ul> to select from all
with CSS. Ok great.
Now I want to be able to capture the ID of the item that the user will
select from. 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 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
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"
2007 Jan 25
2
text_field_with_auto_complete problem
I have some difficulties with text_field_with_auto_complete. Im new to
this, it just will not work, I must be doing something wrong. It would
be great if someone could advise me. I have tried to follow advice
available on the internet, so I dont know what the problem is. The
script gets as far as the breakpoint in the controller, but it doesnt
like the next line giving the error message
2005 Dec 18
1
problems with text_field_with_autocomplete
I''m trying to set up a search field with autocomplete. I have verified
that the server is called when I type a letter in the box, and that the
handler creates the correct instance variable. However, I never see the
partial that is supposed to be rendered.
Here are the relevant files. I included their paths/names in case I am
missing some nuance of the naming conventions.
2006 May 17
5
text_field_with_auto_complete (newbie question)
I have the text_field_with_auto_complete woking on my user DB using
last_name. so looking for ''ivanoff'' works great, but I can''t find
''john''. Plus I like to have ''last_name, first_name'' show up in the
dropdown.
what I can''t figure out is how to concat first_name and last_name to
make a name and use that to look it.
working
2008 Apr 04
4
Auto Complete Problems
Hello All,
I''m a RoR newbiew, trying to experiment with Autocomplete, but I''m
having some difficulties. When I start typing in my input box, instead
of getting a nice drop down, the styling on my page is getting all out
of wack (ie my background colours change, link styling changes, etc) and
I''m not seeing any autcompletion data. Here are the steps I''ve taken
2009 Apr 20
1
RJS sporadic error message
I have this form that allows a user to enter a username and save it,
assocciating your profile with theirs via an id. A list gets updated and
a partial is displayed. The problem is that when I hit the submit button
to this form to make this all happened I (sometimes, but more often then
not) get an RJS error that reads:
TypeError: Cannot set property ''innerHTML'' of bull.
I hot
2006 Jan 20
3
text_field_with_auto_complete
Hi,
I am trying to use text_field_with_auto_complete, it works fine but
when I click on an item (even if I use the up and down key and then
type enter) th search panel disappears but the selected results is
not shown in the text field. Even more, the text field becomes empty.
Any idea?
Thanks
S?bastien
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2005 Aug 15
5
Customized Autocompletion
In the customized autocomplete demo, how does it know what content to
use as the value of the autocomplete?
The returned UL has the name, email address and an image. Yet only the
name is used.
How does it do this? I''ve been trying to get something similar going all
morning with little success.
Also, what does :skip_style=>true do? I couldn''t seem to find a mention
of it
2006 May 23
5
text_field_with_auto_complete
I am having some trouble using `text_field_with_auto_complete'' in
Firefox. For some reason, the drop-down list is being rendered
behind other table elements.
Firefox (broken): http://schema.ca/broke.png
Safari: http://schema.ca/safari_works.png
I''m wondering if anyone is aware of this problem, and what I might be
able to do to work around it?
Thanks,
-Mike
2006 Oct 23
10
text_field_with_auto_complete
Hi,all
I''ve used text_field_with_auto_complete for a while but still haven''t
figured out how to store the value that I selected from the suggested
options. any hints?
Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
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
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
2006 May 31
3
textfield_with_auto_complete - filling two fields
I am going nuts here..
I have a form where users can write a city name (used with
auto_complete) - and once they click on the desired city in the dropdown
menu - I would like to have the Country field filled automatically as
well...
Is this possible at all ?
If so, can somebody please tell me where I can find some documentation
on the subject, or preferrably an example ?
Many thanks in
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 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 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)