Displaying 5 results from an estimated 5 matches for "min_chars".
Did you mean:
max_chars
2006 Mar 02
2
Ajax.Autocompleter with an empty field
...ll have very few autocomplete options. I have
an ajax.autocompleter on it that works great, but I wanted to make it
start autocompleting as soon as the field is blur()ed, so that even
if the field is empty, the list will still appear. Like a combo box
in windows. How can I do this? Setting :min_chars => 0 (or even -1)
didn''t work...
-Josh
-----------
Due to the recent increase in spam and falsely sent email, I now PGP
Sign all of my outgoing mail to prove my identity. This means that
you will see an attachment called "PGP.sig" with this message. This
attachment c...
2005 Jul 09
7
Extending the AJAX autocompleter
...ld need
to pass on additional params to the Framework I am using which is
taking on the request.
For this, I have changed the onObserverEvent function in controls.js
as to the following:
onObserverEvent: function() {
this.changed = false;
if(this.element.value.length>=this.options.min_chars) {
this.startIndicator();
//here starts my change
if(this.options.parameters && this.options.parameters.length>0){
this.options.parameters += ''&'';
} else {
this.options.parameters = '''';
}
this.options...
2010 Jan 07
1
text field with autocomplete
...#39;'name'') %>"
end
*** posts NEW and EDIT view ***
<div id="add_tag">
<% form_remote_tag( :url => {:controller => :tags}, :html => {:id =>
''tag_form''}) do %>
Name: <%= text_field_with_auto_complete :tag, :name, {:min_chars =>
2, :class => "text"} %>
<%= submit_tag ''Add'' %>
<% end %>
</div>
Thank for your help.
Cheer Pete
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on...
2006 Feb 27
0
auto_complete_field Vs text_field_with_auto_complete
....
I want my form to bind its values to these to values. I also want the
category input to be an auto complete field (after the first three chars
have been input).
What is the difference between auto_complete_field and
text_field_with_auto_complete?
Does text_field_with_auto_complete support :min_chars as I can''t get it
to work?
Can text_field_with_auto_complete bind to the search class?
Martin
--
Posted via http://www.ruby-forum.com/.
2005 Aug 24
1
Re: triggering autocomplete with a button press
...e button image, it invokes the autocomplete
show() function. This correctly displays the autocomplete drop-down
div, but it is not active - the items do not highlight when I hover
over them, nor can I scroll through the items using the arrows keys.
I''ve tried various combinations (setting min_chars to 0, setting
has_focus, changed and active to true, invoking addObservers(), etc.)
but none of them have the desired effect. Is there a way to trigger
the autocomplete field using an external function call?
Thanks,
Tyler