Displaying 20 results from an estimated 2000 matches similar to: ":after_update_element on text_field_with_auto_complete"
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
2006 Aug 07
1
Escape ''&'' in text_field_with_auto_complete
Good day.
I have searched on the net and through the archives to now avail as of yet.
I have a text_field_with_auto_complete that searches for company names.
These company names obviously can have an ''&'' in the name of the company
(example Barnes & Nobel).
The auto complete works beautifully.
However, the problem arises when I pass the name of the company to the
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
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
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
2006 Apr 02
13
autocompletion: hooking ''afterUpdateElement'' in Rails
Hi everyone,
I need to trigger a Rails action after the autocompletion is completed
(when the user has selected an option).
From the scriptaculous doc, I figured out ''afterUpdateElement'' is the
place to be but I wonder if/how and where I can hook my javascript code
to this event in Rails code (I''d like to keep using the helper, if
possible)?
I tried passing many
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 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 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 22
0
Problems with "text_field_with_auto_complete"
Hi,
I am discovering RoR with Ajax and have some problem. I wanted to use the
helper "text_field_with_auto_complete" I didn t succed to obtain the visual
render (a drop down list) like here
"http://demo.script.aculo.us/ajax/autocompleter"<http://demo.script.aculo.us/ajax/autocompleter>.
Here is the code I use:
|# view
Just a little test:
<%=
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
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
2006 Jun 25
1
text_field_with_auto_complete nonsense (newbie question)
Hi everyone,
I have been introduced to ruby on rails a couple of days ago and it
really brings out the fun in programming for the Web. I''m trying to
implement a text_field_with_auto_complete as described in
script.aculo.us , as follows:
controller:
class SearchController < ApplicationController
auto_complete_for :recipe, :name
end
search.rhtml:
<html>
<head><%=
2008 Feb 07
4
text_field_with_auto_complete
I have the following in my view:
<% form_tag :action => ''detail'' do %>
Search for Sales Order Number:<br />
<%= text_field_with_auto_complete :sales_order, :id %>
<%= submit_tag " Go "%>
<% end %>
And I have the following in my controller:
auto_complete_for :sales_order, :id
This worked fine in 1.5, but
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 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 Jun 19
10
text_field_with_auto_complete doesn|t work in edit/show view
Hi,
I am using the autocomplete for text field with ''Scriptaculous'' and it
works perfectly fine in "new" action.
All the examples I see are only for the "new" action.
But doesn''t default to the selected value/text in "edit/show" action? Is
this possible or should I write custom code for "edit/show" action?
Thanks, Hari
--
2009 Apr 19
2
Upgrading from Rails 1.3.x to 2.3.2 - text_field_with_auto_complete not working
Folks,
I am trying to upgrade code base from 1.3.x to 2.3.2 and not
surprisingly, lot of things are broken.
''text_field_with_auto_complete'' is not working for me - it gives the
following error:
ActionView::TemplateError (undefined method
`text_field_with_auto_complete'' for #<ActionView::Base:
0x7f0ceb6b8290>)
I already have installed auto_complete -
ruby
2006 Jun 23
0
Re:(RESOLVED, KIND OF) auto complete and after update element
Well, I did finally get the after_update_element to call my controller
action with the following syntax:
<%= text_field_with_auto_complete ( :customer, :company_name, { :size =>
"45" }, :after_update_element => "function(element,value){" +
remote_function( :url => { :action
=> :get_customer_info }, :with =>
2006 Jun 27
1
Scriptaculous Problem
Hi!
I am using the auto complete feature provided by Scriptaculous in an
Rails application.Here
is have to write following string in the view:
Select name:
<%= text_field_with_auto_complete :contact, :name %>
and i have to write following write in the controller:
auto_complete_for :contact, :name
But after putting in this code it does''nt work. I knw that i hve to
create a