• Autocomplete with multibyte characters(Korean)?

    hi I'm trying to apply autocomplete to my rails application. datasource is remote and my data is in Korean. I set minLength to 2. it might not be accurate, but in firefox, it doesn't seem to send request properly. In other browsers(chrome, ie), they sent ajax request immediately as soon as 2 or more characters were typed while firefox didn't. It seems to  sent the request after I typed space or alphabets.  i wonder if it is a browser problem
  • Autocomplete Positioning

    Hi all, Since I upgraded from ui 1.8 rc3 to 1.8 I have noticed a little inconsistency in the way the autocomplete is placed on the page. It sometimes causes the <ul> which contains the list of suggested items to be one pixel too high and to the left. The weird thing is that it only occurs every second time the autocomplete is shown. The first time I show the autocomplete it is correctly positioned, the second time it is one pixel to the left, the third time it is correctly positioned again, etc...
  • invoke autocomplete select programmatically

    Is there a way to invoke the autocomplete select box programmatically?
  • Autocomplete misses the selection.

    Hi All, here is a strange problem with autocomplete plugin. in my application I have many autocompletes, they all are written the same way and the backend side is also implemented the same way, in some places I experience problems with them: I type text, see the suggested results, select one of them, and the result is not selected in the field. The value is selected only if I choose the first result from the list, with all the others the value is cleared. Here is an example of my code:                
  • Works Perfectly With Google's Chrome and 80% of the Time with Firefox.

    I have had a working jquery application for many months where an input entry box in HTML has a change selector function. Recently, I added an autocomplete function against the same input box id. The autocomplete function always works perfectly. After 4 characters, an ajax request heads to the database, and retrieves matches. When a user selects a suggested match, the input box triggers due to a change in value. This calls the second jQuery function which fetches detailed information from the database
  • Autocomplete to allow for multiple words

    I am new to this forum, so please forgive me if this has already been posted. It would be great if one could specify a delimenator so that a fresh autocomplete list appears when one starts a new word followed by the delimenator, in the same string. This would work great for things like email addresses. How could I go about contributing development to these controls? Thanks for a great library!
  • #hashtag and @mention autocomplete

    Hello. I have developed a system in PHP which processes #hashtags like on Twitter. Now I'm trying to build a system that will suggest tags as I type. When a user starts writing a tag, a drop-down list should appear beneath the textarea with other tags that begin with the same string. Right now, I have it working where if a user types the hash key (#) the list will show up with the most popular #hashtags. When a tag is clicked, it is inserted at the end of the text in the textarea. I need the tag
  • Why should left and right keys trigger autocomplete search?

    Can we ignore the left and right keys or make it an option to have these keys trigger the search action? It seems strange that moving the cursor left or right would trigger it. Add:                 case keyCode.LEFT:                 case keyCode.RIGHT: just before                 case 16:                 case 17:                 case 18:                     // ignore metakeys (shift, ctrl, alt) in the _create function.
  • Alternating style on Autocomplete

    I'd like to propose adding a CSS class to alternating items in the autocomplete menu. Makes it easier to see when you have many items or items with long text. Add the following line to the autocomplete "refresh" function:     this.element.children("li.ui-menu-item:odd a").addClass("ui-menu-item-alternate");And the following CSS definitions:     .ui-autocomplete li.ui-menu-item {       padding: 1px;  // needed to prevent the item sizes from changing on hover     }     .ui-autocomplete a.ui-menu-item-alternate
  • autocomplete - add to local

    I'm using autocomplete and referencing a local array.  eg. var foo = new Array("apple","ape"); $("#myinput").autocomplete(foo); What I'd like to do: When the user hits a button, if the value in #myinput isn't part of foo, add it.  Then clear the value and the user starts over. but this time, (this is what I don't know how to do), have the autocomplete use the new foo. Is there a way to refresh the 'reference' to the local array that autocomplete uses? or add to it? Many thanks.  This plugin rocks.
  • json reply ignored

    I'm trying to use the new autocomplete plugin (1.8rc2).  But, I think this is really a json/ajax issue.  I'm essentially copying the autocomplete demo remote-with-cache.html.  When I enter the text in the autocomplete box I've watched with wireshark and I see the query go out to my server and the reply (with a 200 completion).  If I open the net panel in FB, it also shows the reply coming back with a 200 completion.  I can click on the headers tab in FB and see the headers fine.  However, if I click
  • Using autocomplete within AIR sandbox

    I am trying to use the autocomplete functionality from within my AIR app, code below - <html> <head>         <title>JQuery Component Tester</title>         <link type="text/css" href="http://jqueryui.com/latest/themes/base/jquery.ui.all.css" rel="stylesheet" />   <script type="text/javascript" src="lib/air/AIRAliases.js"></script>            <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.4.2.js"></script>    <script type="text/javascript" src="http://jquery-ui.googlecode.com/svn/tags/1.8rc1/jquery-1.4.1.js"></script>
  • jQuery on a javascript heavy site

    Hi all, I'm about to start a project, a site which will use javascript extensively, both for making a nice gui and for me learning a bit more. I've looked around a bit and jQuery seems like a really nice framework, I have some questions though which I haven't seen replies to. One thing I'll use a lot is having a search form using auto complete, rather than being a list under the input field I want it to fill a paginated table underneath. I've seen the autocomplete and the datatable plugin but I haven't
  • Need help with bassistance Autocomplete field entry dependency

    Hello, I'm looking to get some help with configuring the Bassistance.de Autocomplete plugin to refresh my form based on field dependency of an entered field. So that fields such as cities, provinces & countries are updated when a continent is chosen or vice-versa. Using the guidelines set here: http://docs.jquery.com/Plugins/Autocomplete#Dependencies_between_fields I created a the code below for this form http://wordpressclues.com/mat/form4/ and would like the form to refresh on field entry as on
  • Bassistance.de Autocomplete - How to make field refreshes dependant on other fields

    Hello, I've come across a problem where I can't seem to figure out how to make autocomplete field boxes dependent on each other. -=- I'm also looking for experienced AJAX/jQuery programmers as well on other project, so I don't have to do this work. Please feel free to contact me at the site below with your hourly / project rates if you are available for freelancing. -=- This is the form in progress where you can see the autocomplete is working, but no refresh is happening when either a country or
  • [autocomplete] extraParams and .result() issues

    ok, so according to the documentation you should be able to attach dynamic parameters to "extraParams" like so..... $("#states").autocomplete(url, { extraParams: { country: function() { return $("#country").val(); } } }); Well can some please tell me why when i do this..... var options = {                     extraParams: {    'searchBy':function(){return 'page';},                                     'returnFormat':'endline',                                     'overrideQueryLimit':true           
  • (autocomplete) Plugin not returning all elements and limiting

    Hi guys I've got the autocomplete plugin I've noticed that it is not showing all the elements returned by the mySQL query... 1) How can I debug and check if the list is showing all the items it should? For example, I've checked that writing "cañ" -w/o quotes- should return and show 312 elements, but it does not show more than 20 2) Basing on 1)... showing 312 elements would be a waste of load time, should I limit query or should I touch autocomplete plugin's code? Thanks a lot in advance
  • [Autocomplete] Using UTF-8 encoding and local data javascript - matching fails

    Hello, I'm using Jorn's Autocomplete plugin for Greek language. My data is dumped to a local file 'localdata.js' from the database and then the autocomplete matches strings to that data (as in the example with the email matching...). Both me database and my HTMLs are in UTF-8, and although my data is printed well in my webpage, no match is made to the greek strings. Strings in English are matched perfectly, but no matching can be made with the greek ones. What should I do? Is it a javascript problem?
  • WordPress with jQuery UI 1.8 (and mouseInit function in jQuery UI 1.8)

    It seems that the mouseInit function (used in WordPress admin area) and many other mouse functions are no longer in jQuery UI core in 1.8. Have they been moved elsewhere? The reason for my question is because I built a WordPress plugin using Autocomplete in jQuery UI 1.8 and thus and using UI core, widget, and position from 1.8 (RC2 right now). However, that causes significant issues in with the WordPress admin functionality, whether or not I run both 1.7.1 and 1.8 side by side or deregister 1.7.1
  • autocomplete: how do I avoid a duplicate search?

    I use autocomplete as a kind of dataset chooser.  If the user chooses a value from the autocomplete lookup, the database is queried for the matching dataset.  If the user types in a new value, the user can enter a new dataset. An issue arises when the user types in an existing value rather than choosing it from the autocomplete suggestion list. When this is done, the autocomplete .result() method is not called and no dataset is retrieved.  To fix this I added a `.blur(function(){$(this).search();});`
  • (autocomplete) syntax error on response parsing.

    Hi all, i'm trying to use the autocomplete plugin with a remote call but i'm getting a weird problem: the code correctly invoke the remote address and gets a response back, but it doesn't show anything in the textfield to which it's linked and throws a javascript syntax error. Unfortunately the code isn't live so i can't show you a test page, but the code itself is really simple and perfectly works if the dataset with the possible matches is loaded locally. Here's the code: $(document).ready(function(){
  • is this a jQuery 1.4, AutoComplete plugin or Opera bug?

    If I use v1.3.2 (and previous versioins), no problem in Opera broser. If I use v1.4.1, Opera expands the dropdown box. Declaring width is of no use. AutoComplete v1.1
  • Zorn autocomplete: override result render?

    Hello, I am using the Zorn autocomplete plug-in and it works great, thanks Zorn. I was wondering if there is a method to override the rendering of the ac_results div and list, to populate results in an alternate element? Basically, I have a textarea with autocomplete enabled and a div always visible on the page. I want the autocomplete results to populate in the div. I suppose I could try to kill the hide function and do some css on ac_results to achieve the effect I want, but I was looking for something
  • (autocomplete) extraParams get hidden inputs

    How do I put all the hidden inputs from the surrounding form into extraParams? I'm a jquery noob so maybe I'm going about this all wrong. This doesn't work. function getHiddens(obj) { console.log("processing params"); var array = new Array(); $(obj).parents('form:first').children('[type=hidden]').each(function () { console.log(this['name']); array[this['name']] = this['value']; }); return array; } function getHiddens(obj) { console.log("processing params"); var array = new Array(); $(obj).parents('form:first').children('[type=hidden]').each(function
  • Using selectors on data returned from getJSON

    Not sure if this should go here or the Using jQuery Plugins forum. I have the following javascript: <script type="text/javascript"> $(document).ready(function(){     // autocomplete setup     $("input[name='search']").autocomplete("inc/php/suggestions.php", { width: 250, selectFirst: false });     // grab info for result     $("input[name='search']").result(function(event,data,formatted) {         var sku = "sku="+formatted;         $.getJSON("inc/php/results.php", sku, function(data){            
  • jquery.autocomplete, setting additional params based on dom element

    Hi there, I'm having an awful lot of bother trying to get this working. I want to implement auto completion for a text field as follows <input type="text" name="user[name]" id="user_name" class="autocomplete" /> <input type="hidden" name="user[id]" id="user_id" /> Currently our application returns a json string which we eval to extract the results and once the item is selected it fills in the hidden field value with the id as well as the user_name content of the text field. While the code we have
  • How do I prevent Autocomplete from searching for spaces?

    I am using autocomplete from http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ (which is documented at http://docs.jquery.com/Plugins/Autocomplete) I have a data set that includes: Carl Anderson Candy Ableton Ric Arlo If I type "c a" the only result is Ric Arlo, because it matches c space a. I'd like to have it return all three items, because all three could be matches (or just have it return the top two only, because I never really need to search for spaces in my application). Obviously
  • (autocomplete) Compatability with jQuery 1.4?

    Hi all, We're using Jörn Zaefferer's awesome 'autocomplete' plugin and wondered if anyone knows if it is compatible with jQuery 1.4? Be very interested to find out. Many thanks. Anthony.
  • autocomplete with search params dynamic

     autocomplete with   search params dynamic  ??
  • jQuery UI 1.8 Autocomplete - autocomplete is not a function

    Using jQuery 1.4.1, jQuery UI 1.8a1. Following the documentation at: http://docs.jquery.com/UI/Autocomplete I am getting a javascript error: .autocomplete is not a function. Is this functionally not included in jQuery UI 1.8 even though the documentation says it is? I also went into my jQuery-ui.js file did a search for autocomplete, with no results found.
  • [autocomplete] stopping additional ajax requests when starting letters already searching

    It would be great for an option to not start a new search when a search that could contain the data is currently going. This is what currently happens: Lets say I want to type "detroit" fast (ajax backend, query not currently cached or cache expired): - search begins on "de" (minChars = 2) - I keep typing fast before "de" search results come back - "det" starts loading, "de" search is aborted (! but still is trying to load on the backend) - "detr" starts loading, "det" search is aborted (! but still
  • Jorn's autocomplete - setting options

    I have the autocomplete working on my local machine, but I can't get the minChars to work correctly. If I set it to 0 or 1, it works just fine. If I set it to 2 or higher, the page indicates that it's doing something when that key is hit, but no autocomplete suggestions appear. If I delete the 2 and replace it with a 1, everything works.   Basic setup: When the page first loads, I have a jQuery ajax function grab the data to use for the autocomplete from a server method. This method returns data
  • [autocomplete] Need the value of an input field

    I all ! I'm using the current version of jquery and make the first steps with this software. Actually I want to create a form with autocompletion. The difficulty is: I need two criterias to look for. I need to fire up a sql-statement like this select zip,street from streets where zip=$_GET['q'] and street=$_GET['additionalparameter'] But I don't get the value of my zip-field. A console.log( $('#zip').val() );brings "an empty string" in Firebug. The rest of my autocomplete stuff works fine. But this
  • Proposed patch: Datepicker appendTo option

    We want to use the Datepicker widget in conjunction with a Bubble widget we developed. The Bubble widget is a bit like Dialog, except that the bubble is dismissed when the user clicks anywhere outside it. The problem is, since Datepicker always appends to the document body, it always appears to be outside of our Bubble. Thus, clicking on the datepicker closes the bubble. We want, therefore, to patch Datepicker to append to any element.  We have already successfully added an appendTo option to the
  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of