similar to: Autocomplete text field -- what''s it for?

Displaying 20 results from an estimated 7000 matches similar to: "Autocomplete text field -- what''s it for?"

2005 Jul 06
16
Autocompletion not working in Konqueror
I''ve just had a look again at the autocompletion demo that Thomas put up at http://script.aculo.us/demos/ajax/autocompleter Unfortunately, in Konqueror (3.4.1) it doesn''t work at all. Not even an error is triggered. It does work nicely in Firefox. How about Safari? I don''t have the time right now to track this down systematically (maybe latter), but just from
2005 Aug 22
1
Docs for prototype.js
I just found this (by way of comp.lang.javascript), and article on the use of and reference for prototype.js. http://www.sergiopereira.com/articles/prototype.js.html I haven''t checked the details, but it looks pretty good. The author points out that it is un-official. Sam, if you''re reading this, is there a chance of giving it an official blessing? Michael -- Michael
2005 Aug 22
8
Observing changes to a text field
I''ve noticed that using several TimedObservers (prototype.js) on a page to watch for changes to text fields (haven''t tried forms) can have a non-negligible effect on the CPU cycles used by the browser process. Nothing dramatic, to be sure, but unnecessary. Autocompleter.Base (controls.js) follows a smarter strategy to watch for changes. Currently this functionality is tied
2005 Sep 06
4
url_for: :overwrite_params went missing
Somewhere between 0.13.1 and the current SVN version the :overwrite_params option to url_for (and related methods) went missing. I can''t tell whether this was deliberate or by mistake, and I have no idea how to get the same functionality in some other way either. Michael -- Michael Schuerig Life is what happens
2005 Aug 28
8
Save and delete buttons: POST vs. proximity dilemma
I''m in a dilemma: In order to keep GET requests from deleting objects, I''d like to use the button_to helper to get "something" that generates a POST request. Unfortunately, that something is a form and forms can''t be nested. I''d also like to place buttons related to the same form close to each other. At the top are some navigational buttons
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..
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
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
2006 Dec 21
0
Autocomplete field in form - need string to be displayed but :id to be saved.
Hi all, Here''s what I am trying to do. I need autocomplete text field in a form. There are 10,000 names to choose from. But when selected I don''t want the string to be saved but the :id attribute of the model. How can I show the string in the text_field and then swap it out for the :id before a create or update. I see that the customized version on scrip.aculo.us has both name
2005 Jul 10
1
Konqueror compatibility
Thomas, currently the script.aculo.us scripts have some workarounds for Safari that should be extended to more generally cover all khtml-based browsers, Konqueror in particular. In prototype.js, there is a workaround for an addEventListener bug that affects Konqueror as well as Safari, controls.js has a similar workaround, and the special case in dragdrop.js doesn''t hurt anyway. In
2005 Sep 13
3
Alternatives to Rico LiveGrid?
I''m no friend of paging, but I have to somehow deal with lists of potentially large numbers of objects. The Rico LiveGrid[*] at first blush seems attractive, but has some major drawbacks. It doesn''t work with Safari/Konqueror, not yet anyway. It can only handle fixed-size tables and requires that widths, including column widths, are hand-crafted. I''m looking for a
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
2005 Aug 23
0
Fixtures: pluraly bitten
With my functional tests (on PgSQL) I get strange errors like this 1) Error: test_create(AufgabeControllerTest): ActiveRecord::StatementInvalid: ERROR: duplicate key violates unique constraint "aufgaben_pkey" Tracking this down, I found that sequences are only reset for some of the tables I''m using. The reason? Inconsistent singularization. I won''t go so far as
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,
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
2005 Aug 16
1
Defining model classes for enumerations
I have several tables for enumerations. They all have the same content: id, name, position. I''d like to avoid the tedious work of defining a class for each one explicitly. Not least, in order to avoid clutter in the model directory. Here''s what I''ve come up with: class EnumRecord < ActiveRecord::Base def self.define_enums(*enums) enums.each do |spec|
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
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