Displaying 20 results from an estimated 9000 matches similar to: "Auto_complete text field submits form on enter"
2009 Sep 23
4
auto_complete text field not showing drop-down box properly
This may be more of an Ajax question than a Rails question, but I''m
pretty new to Rails and know approximately zero JS. I''d love if
someone could give me a little direction.
I''m using pat shaughnessy''s nested text_field_with_auto_complete
plugin, and it seems to be *mostly* working properly (after many hours
of fiddling). However, the drop-down box is not
2006 May 04
1
auto_complete works sometimes...
Hello All:
I have set up an auto_complete search field within my application
controller and application layout so that it is available to all pages
in my app. I have run into a snag with this in two projects I am working
on where it won''t work on one particular page related to a specific
controller.
I get a No Method error on the column name referenced in the
auto_complete
2010 Mar 19
2
auto_complete plugin on rails 2.3.5
Hi, this is my first post.
I have run:
$ ruby script/plugin -v install auto_complete
but the result is:
Plugin not found: ["auto_complete"]
#<Errno::ENOENT: No such file or directory - /dev/null>
I have also try to run:
$ ruby script/plugin -v list
and the result is:
Discovering plugins in http://dev.rubyonrails.com/svn/rails/plugins/
/CHANGELOG
/account_location/
2006 Feb 26
2
auto_complete on steroids
I am trying to get more out of auto_complete than it apparently was
designed to deliver.
My problems seem to be two fold.
1 - I use aggregations on
names... :first_name, :middle_initial, :last_name and then aggregate
them using a composed_of :wholename thing
auto_complete_for seems to be wired to only use table columns directly
and gags on the aggregate form.
2 - foreign table columns -
2008 Dec 25
5
Plugin auto_complete
Hi all !
I began to develop Rails applications with Aptana Radrails under
Windows. For that I had successfully installed auto_complete plugin and
succeeded to use it.
Now I have an iMac and I''m trying to restart my developments under OS X.
My problem is: when I run the command ''script/plugin install
auto_complete'', the result is:
Plugin not found:
2006 May 26
0
Seeking complete example/plugin of simple usage of Lookup (auto_complete) for making associations on models
I think the second most useful usage of the auto_complete is for editing relations (associations).
I''ve searched for almost a week on all RoR resources but I didn''t found any solution to this problem. Instead I''ve discovered that there are many looking for this.
I think that this problem must be clearly solved and the clear how-to should published on one-more RoR
2006 Feb 11
1
auto_complete
hi guys
I am trying to work the AJAX text_field auto_complete and I was
wondering if someone can show me a sample code of how it works
thanks I really appreciate it
--
Posted via http://www.ruby-forum.com/.
2006 Jan 26
0
auto_complete with 2 related tables
I''m looking for a wiki / example of how to use auto_complete with 2
different tables so you can use the values in the column of one table to
provide a value for a column in a related table.
This concept apparently comes after my Agile book and is important to me
and I would think should be important to others and I simply cannot make
it work.
Anyone have a reference they can point me
2007 Oct 09
0
auto_complete :on_show :on_hide
Hi,
Trying to use the auto_complete options of :on_show and :on_hide....
......, :on_hide => "function(element, update)
{allow_change_control(true);} "
but when I do this it runs my js function but the div doesn''t hide.
I would like the auto_complete to work normally and just run a js
function which sets a js variable.
Any suggestions
Thanks
2006 Jun 21
3
Is this a weird bug with auto_complete?
I think I may have found a bug with the auto_complete feature in rails:
My controller has a before_filter with an except clause preventing the
filter from running on a specific action. The action renders a view with
a text_field_with_auto_complete field. Much to my suprise, the filter
appears to run when I type data into this field! The filter is part of
my security regime, so I end up with a
2006 May 18
0
auto_complete when tab pressed problem
Hi,
This is probably as much a script.aculo.us issue as much as a Rails one.
The default behaviour of the AJAX auto_complete control seems to be to
select the first match from the list when tab is pressed. Is there a way
to configure the control to leave the typed text unchanged when the user
types tab and just move the focus to the next control in the form?
Thanks,
Geoff
--
Posted via
2006 Apr 28
1
auto_complete galore
List,
I''m using auto_complete with textfield, called CompanyCode. so when you
type fx ''0403'' it will show a list with matching company codes, and the
respective company name - like so:
040333 - Some company inc
040322 - Another company
040323 - whatever Corp.
Anyway, once a user selects one of the entries from the list - the whole
text (name and code) is put into
2006 Mar 12
0
undefined method and auto_complete
pulling my hair out on this because I don''t understand...
I have 2 methods/actions in the same ''placements'' controller that I am
concerned with...
find, works properly...
view code from find.rhtml
<td><p><label>Client</label><br/>
<%= text_field_with_auto_complete :placement, :clwholename, {} %>
</p>
</td>
2006 Feb 28
2
acts_as_taggable and auto_complete
I''m using the acts_as_taggable gem (who''s site has gone AWOL
apparently) and I''m wanting to make it autocomplete. I, however, am
the absolute worst JavaScript person ever, so is there anyone out
there that can point me to a tutorial or give some good starting
points? Thanks!
Kenneth
--
=> the blog from beyond <=
=> www.eyeheartzombies.com <=
2010 May 05
0
Auto_complete with has_one association
Hi,
Have an issue with the rails auto complete, it works fine but I don''t
know how to find the id element search in the textfield.
Here is what I''ve done:
<%= text_field_with_auto_complete :user, :ville_name, { :size => 15 },
{ :url => formatted_villes_path(:js), :method => :get, :param_name =>
''search'' } %>
Model:
class User <
2006 Jul 27
2
setting initial text field values in a form
Hi,
I am trying to create a basic form in which I want one of the fields
initialized before displaying it.
My code (in a view) is as follows:
<%
if ( session[:user_id] != nil )
then
logged_in_user = User.find(session[:user_id])
end
%>
<% form_for :suggestion do |form| %>
<label for="suggestion_title">Topic:</label><br/>
<%=
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
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 Apr 21
0
Auto_complete
Hi Guys,
Am building an app in rails1.2.1 and wanted to use the auto_complete.
So i have it set out as follows.
# view
<%= text_field_with_auto_complete :contact, :first_name %>
# controller
auto_complete_for :contact, :first_name
But this is all l get
NoMethodError in ContactsController#index
undefined method `auto_complete_for'' for #<ContactsController:
0x3384570>
2005 Apr 10
1
Submitting form using link_to
I''ve got a form with a paginator and I''d like to save the contents of the
form whenever the user moves to a different page. Since the form contents
aren''t submitted when a link is clicked, I thought I''d just change the
action of the form to the URL of the paginator link and then submit the form
using form.submit().
The form submits but I keep getting a 404