similar to: autocomplete db query

Displaying 20 results from an estimated 100000 matches similar to: "autocomplete db query"

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 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
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
2008 Mar 20
0
Autocomplete and Firefox
I just noticed that when using autocomplete and firefox, if I return a list containing whitespace, my input field is not updated. I''ll try to explain more of the details, I''m using Ajax.Autocompleter and I''ve used the "tokens" option to allow multiple values separated by commas. If the server script responding to the ajax request returns a list in which the
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 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
2006 Nov 30
12
Disable autocomplete (Ajax.Autocompleter) on the fly.
I''m sure there is an easy way to do this, but it is one of those things that is incredibly difficult to search for. How can I disable an ''Ajax.Autocompleter'' element from working ''on the fly''? I have a page where I''m using two (I know it''s crazy) Ajax.Autocompleter elements and once one of them has got a result I want the other field
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 <
2008 Jan 23
2
Ajax.Autocompleter parameters
I''m trying to pass additional variables to my autocomplete data page. I used the parameters option but this only sends a static variable (i.e. I can''t do something like parameters:"param1="+$ (''checkbox1'').checked). I thought I could fix this by calling a new Ajax.Autocompleter every time the checkbox was clicked but that just created duplicate
2007 Jul 11
10
autocomplete in array
Experts, have you figure it out with autocomplete to pass as array objects? still i''m finding out the way to figure. :( regards, Bala --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2007 Sep 07
0
Autocomplete Questions (Umlaut,AfterUpdateElement)
Hello all I got 2 little questions: The first is, what can i do, when some special Chars like "ä", "ö", "ü" doesn''t work. Is there a way to edit .js files, and where. ex: if i use the general AJAX.Request with "postbody: ''name''+escape(var)" it will work cause of the escape function, but then i had to write the whole autocomplete
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
2008 Apr 11
0
textmate-like autocomplete
I''m using autocomplete fields in my app and it would be nice to have functionality like in textmate where it finds the closest match even if you don''t type it exactly right. For example, to find report_controller.rb in textmate press cmd-T and type repocon. In my app if you type repocon it doesn''t find report_controller.rb because it doesn''t match exactly. I
2007 Jan 31
0
change the url in the ajax.autocomplete object
Hi! I need to change dinamicaly the url of the ajax autocomplete object aftes if being declared. I tried to change it like: auto1.url = ''new/url/script.php'' but it didn''t work. Any idea? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to
2009 Feb 03
0
Help needed regarding Yahoo autocomplete UI in rails
HI guys, I have a tag field in my rails app. I want to add auto complete option in tag input field by yahoo UI. I have googled a lot but nothing found workable. Here is the best one that I found from net but by protype. http://genlinux.blogspot.com/2008/07/prototype-ui-autocomplete-ajax-using.html I have tried with prototype also but not work for me. But when
2007 Jun 14
2
A more fancy autocomplete using scriptaculous and ajax
I want to create an autocomplete text field that when you type in (some of) a users name, it pops up the portrait image associated to that user on the left hand side, which can then be dragged away in to a Sortable.Droppable element adding that member to your team... I can get the results to display, but not where I want them. They are always in a list below the textbox. 1) possible? 2) Do the
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..
2008 Feb 08
0
Autocompleter - get rid of default selection?
Running Scriptaculous 1.8.1 I''m experiencing an issue with the autocompleter. As part of a search page, I''ve added and autocomplete field. During entering text, the first entry in the autocomplete list is automatically selected- once the user hits enter (regardless if that is the entry he''s looking for or not), the form is submitted. I''m looking for a way to
2005 Dec 19
2
Difficulty using correct moldel for the data in DB
Hi everyone, I''ve tried posting the same question to the list last Friday but somehow did not see it being posted.. I''ve just started with Rails and Ruby. I just started to play one of those RPG and to get my feet wet I''m writing an app to keep track of item fusions. So the scoop is that item can be fused with another items to create a higher level item. The higher
2012 Sep 20
7
jQueryUI autocomplete (Rails 3.1): can't get source as url to work
Hey, I''m able to duplicate everything in Ryan Bates'' screencast on jQueryUI autocomplete (#102<http://railscasts.com/episodes/102-auto-complete-association-revised>), except for the piece that calls the server for completion data. Here is my view html: <input data-autocomplete-source="/searches" id="search-markets"