• moving from custom.catcomplete to autocomplete

    I was using jquery 1.9 and decided to try putting in 1.11.2 for the smaller file size. With 1.9 I had a custom widget I found that looked like this $.widget("custom.catcomplete", $.ui.autocomplete, {     _renderMenu: function (ul, items) {         var that = this,         currentCategory = "";         $.each(items, function (index, item) {             if (item.category != currentCategory) {                 ul.append("<li class='ui-autocomplete-category'>" + item.category + "</li>");                 currentCategory = item.category;             }             that._renderItemData(ul, item);         });     } });
  • Items are not rendering in jquery ui autocomplete.

    Hello, I am new to JQuery UI. I am trying to include the JQuery UI autocomplete field in my app. This field hits a remote data source. The markup for my autocomplete field looks like this: <input id="myAutocomplete" type="search" class="form-control input-sm ui-autocomplete-input" autocomplete="off" spellcheck="false" placeholder=""> I am initializing this auto complete field via the following JavaScript: $('#myAutocomplete').autocomplete({       minLength: 3,       source: '/api/autosuggestions',
  • Jquery Text Box autocomplete search Feature.

    Hi, I need to implement Jquery Text Box autocomplete search Feature with the latest version of Jquery. For this I need to keep the code base as less as possible. What all files do I need to use to complete this task. For the search results, I need to hit the server. Currently, I am using the following files: 1. jquery-1.4.2.min.js 2. jquery.autocomplete.js 3. autocomplete.css Regards, -Sawan.Patwari
  • JQuery UI Autocomplete on IE6: open menu is rendered behind DropDownList control on page

    dear all, i am using JQuery-UI Autocomplete on the page. beneath the autocomplete, there is a DropDownList.   when browsed on IE6 , and when i write inside the input field of the autocomplete, the suggestions menu opens successfully, but it gets rendered behind the DDL...   i added this style to the same page having the autocomplete and DDL, but with no success:   Collapse | Copy Code .ui-autocomplete{position : relative; z-index: 100 !important;}   p.s. : it works fine on Chrome...   thanks
  • How do I query a multidimesional array for autocomplete

    Hi All, I have a table with color code, color name and ID is it possible with the autocomplete feature to query the code and name fields and return the ID field? is there any example or documentation about this ? thanks in advantage ! Bauke
  • Autocomplete demos not working this morning

    Hi, Has anyone noticed the demos on the juery UI site for autocomplete stopped working this morning (30 Oct 2014)? http://jqueryui.com/autocomplete/ It was working, but stopped working this morning. Using this widget in many places, anyone has any idea?
  • jQueryUI autocomplete() inside dialog()

    Folks, - My dialog displays a <div> myForm </div> just fine. - My autocomplete does *not work* when on input tag inside of dialog. - My autocomplete does work when used on the same div block in parent/top layer ( *not* inside a dialog ). Definition of "not work": - The autocomplete spinner is briefly seen in the input box. - The apache log file confirms the ajax event was called. - The selections do not appear below the input tag. Has anyone faced a similar issue? If true, how did you solve? Is it
  • autocomplete source function not displaying results and cannot access THIS

    I am using jQuery Autocomplete. Originally, I was using a string as the source, and it was working just fine. Now, I am using a function:      source: function( request, response ) {         url = "ajaxsearchplace.cfm?term=" + request.term;         $.getJSON(url + '&callback=?', function(data) {             response(data);         });      } This function is not displaying results under the associated text box. In Firebug, the function is giving JSON that is identical to what is being returned when
  • Keyboard input with jqueryui autocomplete remote multiple source clears previous entries

    I posted this in StackOverflow , with no joy, so I'm asking here as well. I have a jqueryui autocomplete widget that allows multiple entries and pulls from a remote source, and it works perfectly, with one major issue. That issue is that if the user provides keyboard input (e.g., arrow keys or page up/page down keys) to select an item, ALL previous items entered are cleared from the autocomplete. It works fine if the user selects an item with the mouse. It also shows the value, not the label, as
  • jQuery autocomplete using a local json file?

    I am trying to create a jQuery autocomplete widget that uses a local json file. The code for my index page is as follows:- <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Demo</title> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/minified/jquery-ui.min.css" type="text/css" /> </head> <body> <p> <label>Address:</label> <input type='text' name='ward' value='' class='auto'> </p> <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
  • Ammendment to the autocomplete Ui

    I have a requirement for the autocomplete input field can this be done: Supposing i have locations like these: Adana    Adana Havalimanı Adana    İncirlik Adana    Merkez Adana    Adana, All Adıyaman    Adıyaman Havalimanı Adıyaman    Merkez Adıyaman    Adıyaman , All Amasya    Merkez Amasya    Amasya, All Ankara    Çankaya Ankara    Yenimahalle Ankara     Ankara So for the above , if i type in Adana it should bring in the  four possibilities next to it and similar for others. Can this logic  be
  • Jquery autocomplete is not working with colorbox

    I am trying to use autocomplete in my search functionality but found out that it is not working as expected.Autocomplete is getting triggered only once. (per page load) I have done some debugging and analysis and found out that Jquery colorbox is somehow causing issue with autocomplete.Below is entry in my page header section <script type="text/javascript" src="${resourcePath}/js/jquery.autocomplete.js"></script> <script type="text/javascript" src="${resourcePath}/js/jquery.colorbox-min.js"></script>
  • Passing links from JSON in listview

    Hi All, I have been looking at the listview autocomplete demos online for local and remote data.  In the remote data demo a list of cities is loaded from remote data, but there are no links in the 'search results'. See here:  http://demos.jquerymobile.com/1.4.3/listview-autocomplete-remote/ However, In the local data example the list generated contains links to the search content (see below - eg if you search audi, you can click the list item 'Audi' to be taken to audi.html). < ul data-role = "listview"
  • Autocomplete

    HI, I have noticed if i have an array like below: Apple Acceridated Cat Car Baby Background. If i put in c it brings in these options: Acceridated cat car Background So basically it searched for keyword anywhere in the array , unless i type 2-3 more letter and then it stars making sense , so how can i change the above to only show Cat,car when i enter C . Also for the above if i am adding a Turkish keyword which is like : İstanbul So putting I for the textbox does not bring in "İstanbul" however
  • Why is autocomplete slower in 1.4 than 1.3??

    Hi All, I'm making a simple web app and i want to use the autocomplete feature of list view. I noticed that for some reason the JQM 1.3 demo is much faster than the JQM 1.4 demo for local data. What i mean by this is when you type in the 'search box' in 1.3 there is no noticible lag in filtering down the search results, but in 1.4 there is quite a big lag in populating the exact same list (of cars, in this case). Check it out http://demos.jquerymobile.com/1.3.0-rc.1/docs/demos/widgets/autocomplete/index.html
  • Autocomplete Grouping

    Based on the menu dependencies and expected html structure, is it possible to produce grouped results such as this while keeping keyboard / item behaviors intact?
  • How to split returned item in jQueryUI autocomplete?

    Original Example Failed Example Here's the returned data:     var availableTags = [         'ActionScript|AppleScript|Asp',         'BASIC',         'Clojure|C++|C|COBOL|ColdFusion',         'Erlang',         'Fortran',         'Groovy',         'Haskell',         'Java|JavaScript',         'Lisp',         'Perl|PHP|Python',         'Ruby',         'Scala|Scheme',     ]; How can I split the items into arrays during the `renderItem` function,and when users type PHP it will only return PHP from 'Perl|PHP|Python'?
  • displaying a default value in search area of a listview

    Hello all, I have a function that dynamically creates a list of timezones using jqm 1.3.2. function tzSearch(tz, sName) {     $.post ("/Search", { "type":"tz" }, function(data)     {         var d = data.timezones;         var catList = "<ul id='tzlist' data-role='listview' data-filter='true' data-filter-reveal='true' data-filter-placeholder='search timezone...' data-inset='true'>";         $.each (d, function(i, item)         {             catList += "<li>";             catList += item.tzone;    
  • Combination of Dialog and Autocomplete not working in server environment

    At the moment I'm quite confused. I created a function which works as expected when run in a local html-file. But when I move the code to a js-file which I include in my asp.net-page it's no longer working properly. The dialog gets displayed, but soon after (I guess it's the data processing) it gets closed and I get a postback on my page. I tried debugging it using firebug and as it seems the event defined in 'source' is not fired. I have no idea why. var tag = $("#txbSearchDataSource").autocomplete({
  • autocomplete custom display, prevent popup from closing

    I have altered the options display like this $('#search').autocomplete({......}) .data("ui-autocomplete")._renderItem = function (ul, item) { //custom display      return $("<li>")     .data("item.autocomplete", item)     .append("<input type='text' maxlength='3' size='3' /><a>" + item.label + "<br>" + item.den_prod + "</a>")     .appendTo(ul) }; so now I have a text input field for each option returned by autocomplete, but when I am trying to click in the field to type some value the corresponding
  • Is Autocomplete Completely Broken?

    Using browsers: Chrome, Firefox, Opera, MSIE, Konqueror, Seamonkey Running on: Windows 7 Pro, Windows 8.1, Ubuntu 12.04, Ubuntu 13.1, CentOS 6 Testing jQuery's own API URL: http://jqueryui.com/autocomplete/ fails. I don't get any autocomplete activity, including: 1) No "class" modification of the sample text field (should append 'lookup ui-autocomplete-input', but doesn't) 2) No dropdown to select from 3) No javascript errors of any kind It's like it's not firing, at all ... or not getting any response
  • jQuery autocomplete personalization select problem

    Hello, For presentation purpose, I need to tweak and extend jquery-ui. I need this presentation : For doing this, I must change the <UL> in <DIV> with a little tweak (last part of the code). I rewrote the autocomplete refresh method for targeting the good .ui-menu-item I rewrote the _renderItem and _renderMenu methods to insert the correct html and to highlight the search string. I also need to implement the select callback to highlight the search string. But when I click on a result the menu is
  • JQuery UI autocomplete, Load all Data in DOM instead taking from mysql DB

    Reason: Want to speedup autocoplete result What i have: I am having two Input boxes. One is Category and another one is Variety. First im selecting Category by, $("#category").autocomplete({ autoFocus: true, source: function(request, response) { $.getJSON("./php/autocompletenontex_getcategory.php", { category: request.term }, response); }, minLength: 0, select: function( event, ui ) { $('#variety').focus(); } }).focus(function() { $(this).autocomplete("search", ""); }); The above code shows autocomplete
  • Apply autocomplete to multiple input fields

    Hi All I have an issue for a feature I'm creating. Basically I want the user to add their specialities to their profile. I have created a form and have got the page adding additional fields by clicking a button. See the JSFiddle code here: http://jsfiddle.net/wowdesignsolutions/X5Efu/6/ The issue I'm having is getting the "autocomplete" to work on the new input fields that are created. I want ALL the new input fields, and the original one, to use the same autocomplete. The actual autocomplete list
  • Autocomplete Mapping JSON data

    I have successfully mapped some XML data to my auto completes. I used XML because it is more familiar to me, but i think i should be using JSON to be consistent with the way my shop develops. Here is my function using XML: function (xmlResponse, callback) {         var data = $("STORE", xmlResponse).map(function () {             return {                 label: $("STORE_NO", this).text() + "&nbsp;-&nbsp;" + $("STORE_NAME", this).text(),                 value: $("STORE_NO", this).text()            
  • jQuery UI Autocomplete JSON example data returned

    What does the data.geonames in response( $.map( data.entities, function( item ) mean? I am using a web method an an ASPX page to return the data (a List<object> collection) but don't know what I need to do to specify the 'geonames' part, or whatever would be relevant for my application. My c# code is as follow:         [WebMethod]         [ScriptMethod(ResponseFormat = ResponseFormat.Json)]         public List<TheEntity> SearchEntitesJSON(string title)         {             Manager mng = new Manager();
  • Autocomplete 1.8.16 neurotic behavior

    Hi everyone.  In my company we are using jQuery UI Autocomplete 1.8.16 on one of our projects. We have a client where we grab the data from the database, but it takes a little bit longer than it should, around 310, 320 milliseconds. Of course, user is able to type faster than that. It creates the situation where the input text is being deleted and rewritten.  One of the problems is, of course, the server side which works slower, but we can make it faster, and most likely we will. The second problem
  • Pass parameter to autoComplete

    I need to pass a parameter to an autoComplete call. During the onload init call I load a parameter into a hidden text box. I then use another autoComplete to select an employee name and their associated employee ID when I then store in the hidden text box. From a second autoComplete I use the value from the hidden text box to make a selection from the database. The problem is that when the second autoComplete runs the value that is used from the hidden text box is the initial value not the updated
  • JQuery UI Autocomplete textbox event problem with checkbox

    Hi, I had a situation to display a floating group of  checkbox's below the autocomplete as a footer. When i click any check box in the footer, the autocomplete values will be filtered based on the checkbox value. I did it, I show/hide the footer by calculating the autocomplete height using JQuery. Its working pretty well. But problem with the functionality is, after typing some text in textbox when i click any checkbox in the footer first time its not firing its change event. It is firing the autocomplete
  • Can I make a .json call on select event from jQuery autocomplete?

    I have an application that allows users to select an activity (such as watching movies or aikido) from a jQuery autocomplete box. That part is working. What I want, however, is for some boxes that allow a user to select their expertise to either be disabled if expertise isn't relevant (such as watching movies) or enabled if expertise is relevant. To do this, I'm trying to call a $.getJSON from within the autocomplete select event. The $.getJSON calls a server-side php script that asks a mysql database
  • Autocomplete on dynamically added textboxes

    i have a textbox on which autocomplete works perfectly.Below is my jquery code which is used to autocomplete     $.widget("custom.catcomplete", $.ui.autocomplete, {                         _renderMenu : function(ul, items) {                             var self = this;                             $.each(items, function(index, item) {                                 self._renderItem(ul, item);                             });                         }                     });                  var autocmp=
  • Autocomplete and Mapping XML data

    I'm trying to follow JQuerUI's example wtih mapping XML from an AJAX Response to an autocomplete textbox. I feel like im following the example, but not sure where im going wrong. here is my code:     $.ajax({         type: "POST",         async: true,         timeout: null,         url: "ASNProxy.asmx/getStoresOnPO",         dataType: "xml",         data: { xmlDoc: criteria },         success: function (xmlResponse) {             var data = $("STORE", xmlResponse).map(function () {              
  • Open autocomplete menu on focus of textbox?

    Hello, I want to use the autocomplete menu for a textbox, but instead of having to type something before you get results, i want the menu to pop up with all available options first on focus, then narrow as you type. Can someone help me accomplish this?  Thanks.
  • Display autocomplete results by most accurate, not alphabetical

    Hi The source for the Autocomplete is a PHP file that grabs the data from the database. The list is of business names. The client needs the search to look for the users word/s any where within the business name. For instance the source could be "Wishing Well Care Home, Wellbeing Care Homes, Day Care Wellbeing, Wellbeing Clinic...". If the user starts typing in  "well" it will find the all results containing "well". The problem I have is if the user types in "Wellbeing", the results are alphabetical.
  • Autocomplete select:

    Hi all, Im using Autocomplete in my .js i've added some properties to the source (like p which is a Class array - myClass[]) i want to be able to return this class as well as the realValue to the modelAction (using MVC) but the class comes empty. please help :) Class example  public class Service      {         public string name { get; set; }            public ServiceProblem[] problems { get; set; }     }my .cshtml:  @Html.AutocompleteFor(Url.Action("AutoCompleteServiceProviders", "Create"), true,
  • How to add link to an auto complete search box using jQuery?

    Can some one please guide me with regard to this. I have failed to come up with a way to "bind" an item's name (which pops out on clicking it's initials in the search area) to it's respective link. So, that after selecting it from the auto complete pop out and clicking on search ,  we are directed to the page with the particular item. I intend to use jQuery Ui's Autocomplete.@ http://jqueryui.com/autocomplete/ And it has all the listed items in an Array. Is it possible to assign specific web links
  • Autocomplete suggestion text onclick event triggering problem

    hi, I have the following work to be done ,asking for suggestion. I used a textbox Control: textbox Event  : onchange    function : validate email() Event:  keyup           function: autocomplete(); problem here is clicking the suggestion text of autocomplete , onchange event(validateemail) is firing ,how can I prevent that. i want to make it work like onclick of suggest text in autocomplete the validation of email should not be done. after fill the textbox with autosuggestion text only it should
  • How to prevent default select event in autocomplete jquery?

    The default action of select is to replace the text field's value with the value of the selected item. Canceling this event prevents the value from being updated, but does not prevent the menu from closing. I want only close the popup with clicking outside(or with a custom link) of the popup. Is this not possible? $("#search").autocomplete({ select: function(event, ui) { event.preventDefault(); return false; } }); EDIT: Here my Solution. I have modify autocomplete minified. Add cutsom options "closeOnSelect:false"
  • Is there any way to load dynamic data in autocomplete source?

    I cannot add more datas in autocomplete source. Help me to do that.
  • Autocomplete height and Button height

    What am I doing wrong? <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>demo</title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css"> <script src="http://code.jquery.com/jquery-1.10.2.js"></script> <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <style type="text/css"> #tags1 { height: 36px; } #but1 { height: 36px; } #tags2 { height: 30px; } #but2 { height: 36px; } </style> <script type="text/javascript">
  • Next Page

  • 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