• Autocomplete - Custom data and display

    I cannot make it works. There is a Products table (codigo, descripcion, precio, cantidad), typing part of the codigo field should appear the other fields on the list, to select one. However, the list appears with the correct amount of records but with UNDEFINED on every value.  Any idea about why the script is not taking properly the values sent by search.php ? Thank you ! INDEX.PHP  <script>   $( function() {       $( "#codigo" ).autocomplete({       minLength: 0,       source: 'search.php',    
  • Autocomplete search using pre populated sqlite database

    Hi I am trying to create a simple area and zip code search app. The app works and the listview is populated with the user input. However, the listview is only populated once the full name of the area is entered by user. I want it to autocomplete and list suggestions as the user types in the search box.  Here is part of my code HTML:   <div class="searcharea">   <input id="valueEnter1" oninput="searchme(this)"  />   <ul data-role="listview" data-inset="false" data-filter="true" data-filter-reveal="true"
  • autocomplete clear text box

    Hi I have 2 autocomplete combo boxes on the page. These are cb1 and cb2. Both have an ajax source. The user first selects an item from cb1. When the user clicks on the drop down button of cb2, the data obtained for the drop down by the ajax call in cb2 is influenced by cb1. This works with out problem. However I cannot figure out how to reset the selection text box of cb2 to "" if the user alters the selection in cb1. Regards Andrew  
  • Autocomplete Dynamically Assign Value

    I have a SQL database that I'm querying for 1) record indices 2) associated names 3) associated email addresses I'm creating an array(array("key","name","email"),array("key","name","email")) using a for() loop in PHP and populating "var availableTags[]" in my jQuery with a foreach() from that array. Ultimately what I (think) I want to do is have Autocomplete display the name but I want to also submit that name's key[] (perhaps as a hidden input value). Upon SUBMIT the submitted key[] value would
  • Autocomplete with JSON data source not working

    Greetings experts: I have some C# code that's generating some JSON by building up a string.  When I visit the page (http://myServer/index.aspx) from a client, the following is displayed: [ {"label": "James Smith", "value": "12345"}, {"label": "Peter Smith", "value": "23456"}, {"label": "Sally Smith", "value": "34567"} ] (there are actually about 10 sets of labels/values, but they all follow this format) and examining it using Chrome's Developer Tools reports it as a series of objects.  I've put it
  • How to pass other value in jQuery Autocomplete lists/label that is not selected using the Autocomplete itself

    I am doing a email function where there are 2 options for selecting the receivers:  (1) Choosing from Autocomplete box (for small number of receivers)  (2) Choosing from list of Radio Button (for large number of receivers) I use the Facebook themed Autocomplete. My question is: How do I pass the value that is selected from (2) to be displayed together in the Autocomplete box with the value selected from (1). My code for the Autocomplete is as follow: <input type="hidden" name="receiver" value="<?=$receiver?>">
  • TagEditor get initalTags from db through $.ajax

    Hello, I'm using Pixabay Tag Editor https://goodies.pixabay.com/jquery/tag-editor/demo.html,  How do I pass the result of my $.ajax request to initialTags ?  success : function(myTags) { console.log(myTags); } I need to do something like that : $(this).tagEditor({ initialTags : [myTags] Thanks
  • autocomplete textbox with multiple values separated by full stop and Elements

    <script> $(function() { var availableTags = [ "Electronics", "Motors", "Cloths" ]; var Electronics = [ "Laptops", "Mobiles", "Desktop" ]; var Motors = [ "Bike", "Car" ]; var Cloths = [ "Shirt", "Pants", "Jackets" ]; function split( val ) { return val.split( /,\s*/ ); } function extractLast( term ) { return split( term ).pop(); } $( "#tags" ) // don't navigate away from the field on tab when selecting an item .bind( "keydown", function( event ) { if ( event.keyCode === $.ui.keyCode.TAB && $( this
  • jQuery autocomplete will not loop through XML data

    Hi, I'm struggling to connect my code to the xml file so it will loop through the data, here is my code so far;  $(document).ready(function() { setTimeout(function() { $('#_Q0').autocomplete({ source: function(request, response) { $.ajax({ url: "brands.xml", dataType: "xml", type: "GET", success: function(xml) { var results = []; $(xml).find("brand").each(function() { if (results.indexOf(request.term.toUpperCase()) >= 0) { results.push(results); } }); response(results); } }); }, autoFocus: true,
  • menu widget: autocomplete and same keypress several times

    Hi All, i am using jquery-ui 1.11.4 with selectmenu autocomplete My selectmenu has items with values like 4, 44, 5, 55, 555 pressing the keys(4 or 5) multiple times the autocomplete feature selects only the items with value 4 or 5 but not the others i found the problem in the ui.menu widget (jquery-ui.js) _keydown: function( event ) { ........         default:             preventDefault = false;             prev = this.previousFilter || "";             character = String.fromCharCode( event.keyCode
  • Jquery AutoComplete on Mutiple textboxes on ajax populated page

    I have multiple autocomplete textbox in partial view which is working fine when referred from lets say on View 1.On view 1 i have a button ,on click of which i am redirecting to view 2 which also refers this partial view.But here on view 2 ,autocomplete is not working.Then i used the .on function as below, and in this case only one textbox is getting autocomplete while rests are not working. Where i am going wrong. function PlanAutoComplete() { // debugger $("#txtPlanName").autocomplete({ source:
  • Smartly upon installing wp 4.4 my autocompete stopped working.. and says not found immediately..

    I have been pulling my hair out for weeks trying to find out what has gone wrong with my autocomplete search form for real estate..IT does the same on every site that has been upgraded to version 4.4 you can see a pre 4.4 here that works fine.. http://foreclosure-city.info its in the right hand side and you can type Ne for Newport and it quickly finds what is available.. and works just fine.. however when I upgraded to wp 4.4 on any site it totally stops working.. you can see a 4.4 version here..
  • JQuery autocomplete can't get data from response in IE8

    I have autocomplete on one textbox. it's working in IE9, firefox, chrome. but not working in IE8. error msg is :SCRIPT5007: Unable to get value of the property 'question': object is null or undefined. please read the following code and comments inside. Thanks.   $ (function () { $newTFQ.find( "input[id$=tbQuestion]" ).autocomplete({ source: function (request, response) { $.ajax({ url: "Services/Questions.ashx" , dataType: "jsonp" , async: false , data: { featureClass: "P" , style: "full" , type:
  • Following or commenting a bug

    I am interested in jquery ui bug #10544: https://bugs.jqueryui.com/ticket/10544 I was wondering how I can find out updates on this bug (eg: status or when it will be fixes). Also, is it possible to add comments to this bug so that I can voice my interest in seeing this bug fixes as well. Thanks
  • Microsoft Edge with autocomplete does not work properly

    In Microsoft Edge, when the menuslect event in autocomplete triggers the "select" method, this triggers a "blur" event followed by a "change" event on the element.  The result is that the selected item is not set properly at the bottom of the function. I realize this may be an issue with Edge, but possibly consider setting the selectedItem before calling the "select" method to prevent this issue. Specifically: within the menuselect:function()... Move this line: this.selectedItem = item; to the line
  • fill in 3 fields from autocomplete

    I have autocomplete setup on my site.  It uses some ajax functionality to supply the drop downs that is fed back in json in that my selected data is city,state abbr, zip.  What I end up getting is the city field, state field fill in properly, however the zip field is the whole data string.   How do I modify the data that is selected. Here is my code. <!doctype html> <html lang="en"> <head>   <meta charset="utf-8">   <title>jQuery UI Autocomplete - Remote JSONP datasource</title>   <link rel="stylesheet"
  • Autocomplete problem on mobile device

    Hi There, im having an issue, where on a mobile device the onscreen keyboard covers the menu items from the autocomplete suggestion, if i use Blur() with the On callback, the keyboard disappears but the menu items dont show either, im thinking this cause it must be tied to the text input being infocus,  what are my options getting around this on a mobile/tablet device with virtual keyboard $('#autoComp').autocomplete({ source: function( request, response ) { $.ajax({ url : 'ajax.php', type: 'POST',
  • ajax not working

    Dear Sir Refer http://webvikas.net.in/goregaonbiz/bigsale.php after typing name say "an" I get auto suggested names When  I select "Anjali ..." text box near Shop Search is populated with the id of the selected name Shop Search  Value of selected name is filled up in field near Shop Search Following code is used for this  <script type="text/javascript">   $(function() {   $("#searchname").autocomplete({  source: "shopnamesearchautofill.php", minLength: 2, select: function(event, ui) { $('#searchid').val(ui.item.recid);
  • autocomplete dynamic with data pass

    i have two input field, the first have autocomplete with cities names, I need to set the second field zone, with autocomplete filtered by selected city... i tried this but dont work... $("#zone").focus(function(){ var c = $('#city').val(); $('#zone').autocomplete({ source: '/auto_q_int.php?city=' + c }); }); auto_q_int.php is: class Autocomplete { public $term; public $conn; public function
  • accessible jQuery UI autocomplete that functions like jQuery mobile listview or filterable widget?

    I'm creating a filter functionality for a search results page that must be accessible (WCAG 2.0 Level AA) and mobile friendly.  I can see there are accessibility considerations for jQuery UI's autocomplete widget , however I'm looking for the options list to always be visible, much like jQuery mobile's filterable and listview widgets. Can anyone either suggest an accessible extension of the jQuery UI autocomplete that will achieve this? I'd like to progressively enhance a select box (so that without
  • [RESOLVED] jquery multiple autocomplete, remove selected item from the sql array

    Hi Everyone, I am new to php and sql so apologise for not being very clear. I am doing a Multiple Answer Survey where people can select 3 of there "best" friends. I have all the friends name in a MySQL table. I want people to be able to select from a very long list of names so I have implemented autocomplete. The issue is that I don't want them to put the same name twice. Ideally I want the selected name not to appear on the list when typing on the next textareas. I came across this which does the
  • Bug?: Autocomplete with autoFocus and show options on focus

    Hey guys, I've come across an issue when using autocomplete with autoFocus=true and using: .click(function (e) {       $(this).autocomplete("search"); })to open the list of options. There's some kind of race condition where the first element in the list is selected for a second and then becomes deselected. Both features work independently but when combined there is an issue. Is this a know bug? Is there a fix or workaround? Here's some code. (I have extended autocomplete for categories, i also tried
  • Autocomplete with Dynamic Search on Classic ASP Page

    Hi there: I am trying to use Jquery Autocomplete on Classic ASP populating from a SQL Database. I am using this page as the Autocomplete Page: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Untitled Document</title>  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">   <script src="http://code.jquery.com/jquery-1.10.2.js"></script>   <script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script>   <link rel="stylesheet"
  • Autocomplete problem

    Hello. I'm trying to create autocomplete using jquery ui with php but it's not working. I don't know what I'm doing wrong. index.php  <p><label>Team host:</label><input type='text' name='team_host' value="" class='auto'></p> ajax.js $(function() {         //autocomplete     $(".auto").autocomplete({         source: "search.php",         minLength: 1     });                }); search.php <?php  require_once 'dao/TeamHostDAO.php';   require_once 'includes/Connection.php'; $teamhostdao = new TeamHostDAO();
  • jquery autocomplete

    Hi, Good day! I created a search box and my problem is when I type Employee ID the auto list displayed is Employee Name, I need to display on the list is based on what I type. I don't know if it is possible that in one search box I can search Employee name then the list of names will display, when I type Employee ID, employee id list will display. same with Passport no and res id. Now, when I type Employee Id or Passport No or res id and employee name. the displayed list is employee name. this is
  • Existing Jquery autocomplete code Posts Null Ref Jquery 1.9.1 Upgrade

    $(function(){     var searchRequest = null;     $("#asksomething").autocomplete({         minLength: 3,         highlightItem: true,         multiple: true,         multipleSeparator: " ",          source: function(request, response) {             if (searchRequest !== null) {                 searchRequest.abort();             }             searchRequest = $.ajax({                 url: window.location.origin+'/cgi-bin/cgi-lib/autocomplete.pl',                 method: 'POST',                 dataType:
  • Autocomplete not working when the data is dynamically created using on click of the textbox

    Hi All,   I Have a Strange problem going on for weeks and I don't know how to fix it.   I have two text boxes City and Area which needs to show autocomplete.   While the page loads, Im taking all the city which I need from database and saving it in an arraylist.   So when the user types a City, the autocomplete works perfectly.   Problem comes after this, based on the City the user has choosen, when he clicks the Area textbox, Im making an ajax call and getting the areas for the city in from the
  • catcomplete error for jquery-ui v1.11.4

    The following code for autocompletion with categories ran fine with jquery-ui v1.10.4: $.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 ); }); } }); When using jquery-ui 1.11.4, I receive an
  • Autocomplete with addtional parameters

    Dear Sir In a registration form Auto complete is working fine http://marathepratishthan.org/register.php  I am accepting First Name * After this I am accepting following 3 fields  Father's Name  Auto Suggest based on name accepted-Name+ value entered Grand Father's Name Auto Suggest based on name accepted Name, Father's Name + value entered Great Grand Father's Name Auto Suggest based on name accepted Name, Father's Name, Grand Father's Name + value entered  For each auto complete I am using following
  • how to hide the 'x' button in Autocomplete Jquery UI in IE11

    Hi,  how to hide the 'x' button in Auto-complete jQuery UI using  IE 11 as default browser  when i put the cursor inside the input Auto-complete jQuery UI a button 'x' appear in IE 11  problem just in IE 11  http://i.stack.imgur.com/RpAlp.png i use that css code but it s not working      .ui-autocomplete-loading::-ms-clear {        display: none!important;     }
  • Autocomplete - search form does not submit.

    Hello, I added the 'autocomplete' function to my search engine. Well working as to be seen at http://test1.sphider-plus.eu to place any suggestion into the input field of the search form. But I am unable to trigger my search engine without pressing the 'submit' button of the search form, after the suggested keyword is placed into the input field. I searched the forums for solutions and found http://forum.jquery.com/topic/autocomplete-enabled-field-not-submitting-when-pressing-enter Unfortunately
  • How can i put autocomplete suggestions 'on top' ?

    See the examples here: http://demos.jquerymobile.com/1.4.5/listview-autocomplete/ http://demos.jquerymobile.com/1.4.5/listview-autocomplete-remote/ There is the search box, then there is a "View Source" button. When suggestions are displayed, they are inserted before the "View Source" button and thus, the page grows in length. I would like the suggestions to float on top of the rest of the page. I *think* I could play with zindex to make this happen but am not sure - my CSS is not the best. Anybody
  • how to hide results after selecting from listview filterable / autocomplete

    Something that has troubled me for some time - I solved it just now and thought I would share... Using listview autocomplete http://demos.jquerymobile.com/1.4.5/listview-autocomplete/ I have a form for entering a business name and address. When the operator (user) enters a business name, I want it to list similar names already on file.  Purpose: Give the operator the chance to either edit an existing record, or give them an idea the record already exists, or allow them to add a new record that is
  • Jquery UI Autocomplete onselect ..!

    There is a output box, where i need the autocomplete selected list (Multiple Items selected )to add into output box, I tried this http://jsfiddle.net/ej5wz8yg/
  • Autocomplete using PHP MYSQL not working

    Dear Sir refer http://webvikas.net.in/marathe/Autocomplete_search_PHP_Json/autocompleteindex.php Auto complete not working PHP+ JQUERY <?php //autocompleteindex.php include_once('../includes/dbconnect.php'); $query = 'SELECT bg.name, bg.surname   FROM member bg WHERE bg.name LIKE "%'.$user_input.'%"';        mysql_select_db($database_DBconnect, $DBconnect); $Result = mysql_query($query, $DBconnect) or die(mysql_error()); $rows = mysql_fetch_assoc($Result); $totalrows=mysql_num_rows($Result); echo
  • Using the Autocomplete widgets in the right and optimized way

    Hi, I have read some books and tutorials about using jQuery UI, including Autocomplete widgets... So , I decided to make some simple application where I have JSON file named auto.json in which is data for the Autocomplete widget. This is my code: var arr = []; $("#automobil").focus(function() {     $.getJSON("auto.json", function(data) {         $.each(data, function(key, value) {             if ($.inArray(value.name, arr) === -1) {                 arr.push(value.name)             }         })    
  • Jquery UI autocomplete accessing !

    Im using following code for autocomplete from remote database  $( "#name" ).autocomplete({     source: function( request, respond ) { $.post( "/Web_Service/AutoSuggestion.php", function( data ) {                 respond( ["you wanted: " + data] );         },'json');     }, minLength: 3 });I'm getting data from server as     {DSName: "sampel"} DSName :  "sampel" How to display the received data as autocomplete to the input field..! when im entering 3 characters "sam" in input field the autocomplete
  • autopopulate option in cascading autocomplete if it is the only option

    Hi trying to create cascading autocomplete e.g. 1. CITY 2. STREET 3. NUMBER and once the 1st autocomplete is selected then child elements get autopopulated with option(s) if it is the only one. E.g. there can be the only one street in the city and the only one building number on that street so I' like to be STREET and NUMBER automatically to get their value in such case. In case there is more options then classic widget will be shown. Could you please nudge me closer to solution how to extend autocomplete
  • Autocomplet

    Hi friends i have a autocomplete code  but i need search button to get the value in tags I need a autocomplete code with ridirect button and i want to give the tags to individual hyperlink   If you r an have the Code??? But I Dont't It is possible
  • ui-autocomplete select event not fired on mouse click

    dear all,   i am using JQuery UI v1.11.0 my autocomplete is working fine, except this case : when i click on a menu item, "select" event is never fired, unless i click exactly on the text within the item.. only then the item is clicked, and "select" is fired   here is my code for creating autocomplete: function CreateAutoComplete(sourceArray, labelTextBox, idTextBox) {   $("#" + labelTextBox).autocomplete({ source: sourceArray,   open: function (event, ui) {   $(this).autocomplete("widget")
  • 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