Displaying 20 results from an estimated 2000 matches similar to: "Re: triggering autocomplete with a button press"
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
2006 Mar 02
2
Ajax.Autocompleter with an empty field
Hey guys,
I have a field that will 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
2007 Jan 17
0
Triggering Autocompleter by button
Hi!
I got a Autocompleter on my page and its working fine. For mouse-users
I need a button which triggers the Autocomplete. I tried a
this.getUpdatedChoices(); and it starts a request, but it doesn''t seem
to handle the response.
----------------------------------------------
Ajax.TriggerableAutocompleter = Class.create();
2005 Jul 09
7
Extending the AJAX autocompleter
Hi (I think Thomas?),
I am trying to extending the AJAX autocompleter here, and would 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) {
2005 Aug 01
2
disable ''tab'' key wish for incremental autocomplete of textareas
I''m absolutely in love with the incremental
autocomplete feature in the new scriptaculous.
My one wish would be for some way of disabling the TAB
key to prevent users from being able to tab out of an
autocompleting textarea. (If they''re using TAB to
select the autocomplete choice they end up tabbing
straight out of the input field if autocomplete
doesn''t find any
2005 Oct 20
1
Autocomplete - Destroying the object
Hi,
I''m new to all this so if this is a daft question sorry.
I''m using Ajax Autocomplete to populate a search box with likely matches.
These results need to be filtered by an option from a select box that
is alongside the search box.
As the current Autocomplete function only takes in one id to post to
the search file, i figured i could post more stuff to the
Ajax.Autocompleter
2006 Jan 23
1
autocomplete=off not working on Firefox
I noticed that the latest control.js disables auto complete:
this.element.setAttribute(''autocomplete'',''off'');
So I removed my inline "autocomplete=''off''" from my input fields.
But Firefox still auto completes.
Using the Firefox DOM Inspector I do see that it''s applied
by Ajax.Autocompleter as expected. The Inspector
2005 Sep 21
0
triggering select in autocompleter
Hi,
Is it possible to trigger a selection in autocomplete component?
Cheers,
Ron
2011 Oct 24
1
JQuery autocomplete example
I was trying to follow along on the github example
(https://github.com/crowdint/rails3-jquery-autocomplete) for building
an autocomplete and ran into a small set of problems. I''m not using
the exact names of models, but I suppose I could. It''s just a dummy
set. For me: Model is Package and attribute is Brand.
I don''t understand what the reference to class
2012 Apr 09
0
Autocomplete text-field version of dynamic select menu?
I have a form for submission of brand, model, and style. Style
belongs_to model, and model belongs_to brand. The form is actually a
style submission form, but allows users to create new brands or models
as well, should they not exist.
What I want is for the autocomplete for ''model'' to populate when an
object for ''brand'' is selected in the first text field..
2006 Feb 11
1
autocomplete inside a table?
Has anyone tried putting an autocomplete field inside a table?
I can do this successfully within FireFox, but in IE, it just doesn''t
render the "drop-down" autocomplete div. Unfortunately, I don''t
understand enough about why IE doesn''t work to know how to fix it.
My autocomplete div CSS is:
div.auto_complete {
position: fixed;
border: 1px solid #eee;
2007 Aug 08
1
autocomplete field in ajax response html - css does not get applied.
Hi all,
I have a page in which a div is updated with some html via Ajax. The
returned html contains an autocomplete field. The autocomplete field
works but the drop down results div does not get css applied to it so the
selections don''t get highlighted when I use the up/down arrows and so
I am unable to select from the drop down except for the first item. I
have been looking at this in
2006 May 16
0
in_place_editor with local autocomplete
Hi Rails gals n guys
I am trying to enhance the "Lightning-Fast JavaScript Autocompletion"
rails recipe. For those that do not have the pdf-book the recipe
explains how to use a javascript array for an auto-complete text field.
I want to combine this with the in_place_editor call. My current
(unworking) code:
<!-- Load the array for autocomplete -->
<script
2009 Oct 29
0
Javascript in text field with autocomplete
If I am using the autocomplete plugin, and I have a text field
specified in a form that incorporates autocomplete, such as:
<%=
text_field_with_auto_complete :doctor, :organization, :autocomplete =>
"off" %>
how can I put javascript event handlers to if (e.g. keypress,
onchange, etc.) ? WHat I really want to do is call a method in my
controller if either:
1. The text field is
2007 Jan 30
0
Autocomplete nested within AJAX partial
I have the scriptaculous autocomplete working perfectly for normal
page access. But having problems when combining with AJAX.
The page contains a div that is updated dynamically via AJAX.
Also the autocomplete field lives within this dynamic region.
On first load (normal page access) the autocomplete works fine. However
it stops to respond once AJAX updates the region.
It seems I am missing
2006 Mar 13
2
Autocomplete broken after update to Rails 1.0
When I upgraded to 1.0, I broke autocomplete on a field. I''ve done
everything that I can think of to fix the problem, but nothing has
worked. I''m able to recreate a simple autocomplete from examples on the
various tutorials, but my original code just will not work.
<input id="incident_first_party_name" name="incident[first_party_name]"
2005 Jul 28
2
autocomplete: how to access a child element of <li>
hi.
i promise this will be my last question for the day.
still playing with autocompleter, everything is working ok, but i''m
having difficulties accessing just the href attribute of <a> element,
which is a child of <li> in the autocomplete response, i.e:
<div class ="autocomplete">
<ul>
<li><a href
2007 Mar 19
0
Firefox Input Fields with Autocomplete=off
In FF 2.x if you turn off autocomplete on an input field it triggers an
undesired side effect. Pressing UP and DOWN now move the cursor to the left
and right. This only happens in FF and only with autocomplete off. This does
not play well with script.aculo.us AutoCompleters.
I need a way to force the cursor to the end of the input string whenever UP
or DOWN is pressed. Is this possible?
Thanks,
2005 Aug 02
4
Fwd: Re: disable ''tab'' key wish for incremental autocomplete of textareas
Hi Tim,
Thanks for the commentary, you bring a good point to
light: I think the asynchronous nature of AJAX needs
to be looked at more carefully in our UI assumptions.
The key difference between AJAX auto-complete and any
other browser/OS autocomplete is that we can''t
guarantee having the results ready by the time the
user wants to hit TAB. In the old days we used to
have everything
2006 Feb 13
2
would like to have the input text highlighted in the autocomplete div
Hello everyone,
I would like to have the input text highlighted in the autocomplete div (similar to google suggest)
Any ideas how I can get this working with the autocomplete class ?
Thanks,
Shyam