similar to: Autocomplete field in form - need string to be displayed but :id to be saved.

Displaying 20 results from an estimated 10000 matches similar to: "Autocomplete field in form - need string to be displayed but :id to be saved."

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
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,
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..
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
2005 Jul 30
0
Autocomplete text field -- what''s it for?
This question is probably naive, as obviously lots of people make use of the autocomplete text field. They provide a great functionality to the _end_ _user_, they look nice and the interaction is intuitive. Still, I just don''t see how to use them sensibly. My major misgiving is that I only get text where I actually want a primary key. I''ve got my own implementation of this
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 Apr 10
3
autocomplete 2nd field based on 1st field''s input
I''m trying to populate a field named "file_name" based on the input of a field named "title". So, for instance, based on the following input in the "title" field: My Title Is Awesome I would want the following "file_name" to be autocompeted on the fly: My_Title_Is_Awesome I''ve been going over all the autocomplete examples out there,
2006 Feb 13
1
autocomplete input field name
Hi All, I''m new to ruby on rails and I struggle with a problem in my first application. I searched the forum (and ofcourse google) but I think it is just an easy thing that nobody boughters to write down :) I am building a kind of library application for (fysical) books and e-books and later I want to add other functions like knowledge management. The problem: in the book show page
2006 May 24
2
autocompleter competing with saved form data in firefox
Hi all, I have used the sciptaculous Ajax autocompleter a few times now. A major problem I have at the moment is with a text field that has focus when a page loads. The text field has an autocompleter associated with it, but when the user starts typing, the firefox saved form data autocompleter appears first, and the scriptaculous one is partially hidden behind it. Has anyone else encountered
2006 May 26
4
shouldn''t this work? - session[:array_of_objects].delete_if {|x| x.id == params[:id]}
I am saving an array of active record objects (college courses) in the session as session[:course_list]. This is the cart for a registration controller. If a student chooses to delete the course from the list I get the :id as params[:id]. However if I do session[:course_list].delete_if {|x| x.id ==params[:id]} does not work. session[:course_list].delete_at(idx) works. Ocourse to do this I have
2006 Jun 14
0
Help regarding autocomplete customization
I tried working with the example on customized autocomplete at http://demo.script.aculo.us/ajax/autocompleter_customized. The code is working fine on Internet Explorer. But I had a problem when working with mozilla. The list was getting displayed but the selected value is not getting pasted in the textbox. can anyone help me with this??? Thanks in advance, Veena www.neevtech.com
2006 Sep 01
0
Scrollable autocomplete div in IE -- works in 1.6.2?
Hello all, I noticed that script.aculo.us 1.6.2 supports scrollable divs, and the comments in trac on the http://dev.rubyonrails.org/ticket/4782 patch seem to indicate that this should work in IE. I''ve still running into the problem though -- clicking on the scrollbar in IE is treated as a click outside the autocomplete div. Has anyone had any success with this? jon
2006 Jan 07
3
script.aculo.us: autocomplete does not work
I copied an exact copy of "http://demo.script.aculo.us/ajax/autocompleter" to my harddisc inclusive all .js and .css. Then I changed "new Ajax.Autocompleter(''contact_name'', ''contact_name_auto_complete'', ''/ajax/auto_complete_for_contact_name'', {})" to "new Ajax.Autocompleter(''contact_name'',
2006 May 30
0
autocomplete - updating 2 or more fields
I want to use autocomplete (text_field_with_auto_complete) to update several field s if a match is found. I.e. a user types something in the autocomplete field, a match is found, the application then goes and fetches some more values from the database and populates some fields on the form based on the match found. Has anybody done anything like this? Any advice very much appreciated. Many
2006 Aug 01
0
Custom Autocomplete Field - Making a field lowercase
I''m trying to humanize() the results that appear in the autocomplet drop down list. First i customised the controller. In the render line on the controller it is saying "i want to use locality on each of the @items". So locality is what i want to humanize". My ideas so far is to: Customise the PostCode object so that when auto_complete_result trys to call
2006 Jan 14
2
Using AutoComplete(script.aculo.us) with DB-Query
Hi, I''m using AutoComplete from script.aculo.us and want to combine this with a call to a database. Is there any work done so far or do I have to implement all on my own. The only thing I have seen is using results from a file on the server. But that is not very handy. Some words to my background. I''m programming for a project at my university. Our aim is to combine the
2006 Apr 23
4
Ruby, Rails & Linux - Which distro
Did I sound like our President? :) <spin> I didn''t explain myself well. I am not thinking of buying the identically equipped PC laptop either at the same price. If I had a $2500-$3000 budget (laptop, Applecare + case etc) I might consider the Mac, but then in the PC laptop universe there are more options of going with the slower processors (T2300 or T2400) for about $1,000 less
2005 Aug 24
1
Re: triggering autocomplete with a button press
I''ve got a search field on my site that uses an autocomplete to match against search terms already input by the same user. That''s working perfectly. However, I''d like to provide a little button next to the search field that triggers the autocomplete, so that the users can "browse" the list of past search terms. This behavior would be in addition to the
2006 May 16
7
svn-1.3.1 errors on intel mac on checkout
I just installed svn-1.3.1 from .dmg on an intel mac. I am getting ... subversion/libsvn_wc/log.c:338: (apr_err=155009) svn: In directory ''sr'' subversion/libsvn_subr/io.c:565: (apr_err=2) svn: Can''t copy ''sr/.svn/tmp/text-base/README.svn-base'' to ''sr/README.tmp'': No such file or directory Any one getting this? TIA for any help.
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