similar to: Javascript in text field with autocomplete

Displaying 20 results from an estimated 6000 matches similar to: "Javascript in text field with autocomplete"

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 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 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 19
0
Autocomplete field - onChange immediately after selection
Dear all, How can I trigger onChange event after a choice is selected and put to a field? Now this event is triggered as usual after exit from field (with tab or mouse) but it would be nice to do some custom onChange action immediately. Thanks! Janko
2006 May 22
0
(nebie) Autocomplete and many to one relationship?
All, I''m trying to get autocomplete to work for the first time. I''m not sure if I''m doing this right or not. I have a table where one of the fields is a employees name. I expect a relatively small collection of person''s names will be used. I created a simple employees table with just 2 fields: id, and name. Then in my main table I added a employee_id field
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 Feb 09
0
pass values with autocomplete textfield
Hi all, I have a simple app that has an autocomplete textfield in my view. I now want to be able to pass the value of a select to my controller when my auto_complete_for_location_name is called. My goal is to be able to filter the autocomplete results by the value of the select. My view code looks like this: <%= form_remote_tag :update => "search_results", :url => {
2010 Jul 22
0
Autocomplete - Search Multiple Tables
I''m trying to implement Autocomplete on my site and allow customers to search for restaurants by name or city all from one search box. I can''t seem how to get one edit field to interact with Autocomplete from multiple controllers. I can add the appropriate code into the controllers to allow access on the page, but how would I modify: <% text_field_with_auto_complete
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 Apr 17
1
Autocompleter to read value from hidden field
I have an autocomplete field with road names (looking up in a database with approx. 100,000 road names). To limit the number of roads, i want an extra input field where to put postal code. I''m currently using <%= text_field_with_auto_complete %> for the field. What is the best way in Rails to intercept the Ajax call and send the value of the postal_code field? (I guess I could do
2006 Jun 21
0
Ajax.Autocompleter and onchange event
Hello, currently I''m working on a JavaScript-on-screen-keyboard for use with touch screens. To autocomplete inputs I want to use the Ajax.Autocompleter control. The problem is that Ajax.Autocompleter only responds to onkeypress events made with a real keyboard, but my on-screen-keyboard causes onchange events when a letter is clicked and appended to the input field. So, is there a way to
2006 Aug 09
0
Two Autocompletes, make first value affect the second
I have two text_field_with_auto_complete text_field_with_auto_complete :user, :state text_field_with_auto_complete :user, :suburb The user fills in the text_field_with autocomplete... but then I want to filter the results in the suburb with the value they''ve just entered def auto_complete_for_user_suburb @suburbs = PostCode.find(:all, :conditions => ["lower(locality)
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]"
2009 Aug 25
28
Anything but Aptana
Not trying to get into a "What''s a good IDE" here, BUT....On Windows....RadRails never cut it. Under Aptana, it''s a terrible joke, and I''m sick of losing so much time waiting not only for this thing to initialize, but the hanging and crashing I go through is killing me. Please, someone....point me to a decent, lightweight IDE. All i want is syntax coloring.
2006 Feb 24
1
Autocompleter Problems
Hi, I''m trying to get autocomplete to work but have been having some problems. It seems that Ajax.Autocompleter(...) is not getting called. I''ve put in a alert in control.js: Autocompleter.Local = Class.create(); Autocompleter.Local.prototype = Object.extend(new Autocompleter.Base(), { initialize: function(element, update, array, options) { window.alert("GOT
2006 Apr 11
4
text_field_auto_complete not working in IE?
Hi all, I''m looking for some insight on why my text_field_with_auto_complete might not work in Internet Explorer. I''m using it in a fairly simple way, without much customization. I''ve broken it down and made a test page at http://realty.colemanation.org/houses/test which shows the behavior I''m having problems with. For me on Windows XP this page works
2006 Mar 14
2
autocomplete using other models
I''ve asked this in various ways but I can''t seem to get much traction - my guess is because not many people are doing this. I am working in a controller/views called placements. Placements belongs_to :client I have a clients model/table - clients has_many :placements in placements/find...this works fine... <%= text_field_with_auto_complete :placement, :clwholename, {} %>
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
2008 Jan 18
2
autocomplete for
I have this code in my view: <%= text_field_with_auto_complete :client, :name %> when I submit new, y get: "client"=>{"name"=>"MSO"} I want to get: "repair_ticket"=>{"client_id"=>"??"} My models are class Client < ActiveRecord::Base has_many :repair_tickets end class RepairTicket <
2006 Apr 01
1
piggybacking an action on an autocompleted field
Hi everybody, I''d like to add a custom action to be triggered after/when an autocompleted field has been/is beeing updated by the autocompletion process. I tried the obvious - a field observer -, but it doesn''t work (see code below). I know I could write the autocompletion code myself, but I wonder if there is a simpler/more elegant way? Any idea? TIA Alain The