FAQ Database Discussion Community


Line between results autocomplete

android,autocomplete
I created a custom autocomplete from database and I noticed the results (drop down list) aren't separated by a line. Is there a way to create this line? Thank you! Example: result A result B...

Autocomplete and modal

javascript,jquery,css,autocomplete
I have a modal div and textbox inside this div. I want to set an autocomplete for the textbox. To set z-index correctly for autocomplete I use the following code: $('.autocompleteTextbox') .autocomplete("option", "appendTo", "#my_dialog"); it works fine, but I want to set it for many modal divs and these divs...

autocompletion in jquery not working

c#,jquery,asp.net-mvc,razor,autocomplete
I am using json result to populate the textbox and I can see the values are returned to Razor view using alert. But I am unable to bind them to textbox. in my layout.cshtml i am loading the jquery files. ![This is in the header section of my layout page][1]...

How to implement the “auto pairing of quotes” feature in custom mode in ace-editor

autocomplete,quotes,ace-editor
I want to add "auto pairing of quotes" feature in my custom mode. I find the solution that add editor.setBehavioursEnabled(true), but it seems like only work for existing mode. I know I perhaps miss some code in my custom mode. Can anyone point out which code is response for this...

How to bind Kendo UI AutoComplete values to URLs?

autocomplete,kendo-ui
How to bind Kendo UI AutoComplete values to URLs? I use the open source version; Kendo UI Core.

AutoCompletion for my DSL keywords in Geany

autocomplete,ide,dsl,geany
Geany(IDE) supports Autocompletion or IntelliSense as you program, but this is done based on the words you've used in the code so far. Is there any way so I could have Autocompletion for my language keywords?...

dojo FilteringSelect takes time to autocomplete, any hack to autocomplete it faster?

javascript,autocomplete,dojo
Good Folks, I'm using dojo FilteringSelect to populate list of numbers on UI from database. I have observed that if I tab out immediately after keying in a valid value in the text box (valid = value is present in drop down list), text box turns red indicating that there's...

How to disable Visual Studio's autocomplete while in comments

visual-studio-2013,autocomplete,intellisense
Visual Studio seems to have some kind of limited auto-complete that occurs while typing comments. It seems to be listing classes, variables etc just to fill in their name. Here's an image showing it popping up while I type "form". I find this highly undesirable because comments are not usually...

Jquery .click() not working with livesearch [duplicate]

jquery,autocomplete,livesearch
This question already has an answer here: Event binding on dynamically created elements? 8 answers I've implemented a live search basing on the string written in an input form. Results are displayed correctly in this way: <input type="text" class="form-control" name="search_client" id="search_client" required autocomplete="off"> <ul id="results_client" class="liveresults"> <li class="liveresult"> <h5...

How to use Android Places API AutocompleteFilter

android,google-maps,autocomplete,google-places-api
I am trying to implement the new Places API for android in my app and I cant seem to figure out how to set a filter to the request. Here is my code. LatLng southWest = new LatLng(85, -180); LatLng northEast = new LatLng(-85, 180); LatLngBounds bounds = new LatLngBounds(southWest,...

Stop jQuery autocomplete to filter/search results and populate the entire source array data

javascript,jquery,jquery-ui,autocomplete,jquery-ui-autocomplete
Problem: I am using jQuery autocomplete for input type text. I do not want to filter/search the results based on input and want to display all the source array values as suggestions. Any idea how to achieve this? Is there a a method/alternative to just populate an entire array data...

Autocomplete off vs false?

html,google-chrome,autocomplete,w3c
Recently I have come across an issue where I wanted to disable auto-complete in all browsers. Chrome has a new feature in settings where you can add a card number. And the requirement was to also disable that. What worked in all browsers was to do this autocomplete=false at form...

Jquery Close autoComplete list

javascript,jquery,autocomplete
I have the following JQuery to display an autocomplete list: var displayNum = 10; var pointer = displayNum; function DelegateSearch(txtBox) { $("#" + txtBox).attr("placeholder", "Search by Last Name"); $(".ajaxcompanyRefreshImage").attr("src", "/images/refresh.jpg"); $(".ajaxcompanyRefreshImage").hide(); $("#" +txtBox).parents().find('.ajaxcompanyRefreshImage').click(function () { $("#" +txtBox).autocomplete("search"); }); $("#" +txtBox).dblclick(function () { $(this).autocomplete("search"); }); $("#" +txtBox).autocomplete({ change: function...

PyQt4 QComboBox autocomplete without using setModel?

autocomplete,pyqt4,qcombobox
I have found several excellent examples of a PyQt4 QComboBox with autocomplete (e.g. How do I Filter the PyQt QCombobox Items based on the text input?), but they all use setModel and setSourceModel... etc. Is it possible to create an autocomplete QComboBox in PyQt4 without using a model?...

VBA auto add text, next to a specific word in a cell

excel,vba,autocomplete,ms-office
I have been trying to do something theoretically simple, but I cant seem to finish it. I want whenever a cell has a specific single "word", to auto add a specific "word2" next to it on the left (previous column)....

Is there a way to code the disabling of saving passwords in modern browsers (like Chrome 42)?

javascript,jquery,html5,google-chrome,autocomplete
I have a asp.net/MVC/Razor project that the client has requested not save username and passwords. I've found multiple sites saying that autocomplete = "off" or autoCompleteType = "disable" should work, but they don't work for me in Chrome 42. I've seen sites that say autocomplete is in HTML5 and should...

Select all text in textbox with autocomplete (C# winforms)

c#,winforms,autocomplete,textbox,selectall
I've created a textbox with autocomplete functionality, but I encounter the following problem. Whenever I press Ctrl+A to select all the text in the textbox, the text disappears. Here is my source code for the textbox: this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox1.AutoCompleteCustomSource.AddRange(new string[] { "hello", "test", "ahha", "haha"}); this.textBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;...

IOS 8 Objective-C Search bar and Table view Using Google Autocomplete

ios,objective-c,uitableview,autocomplete,google-api
I'm new to iOS development and I've been stuck with this problem for two weeks now. I'm trying to make a search bar with an autocomplete function from google search results. The closest I've been able to make this is by following this tutorial by Hybrid Forge. (Other tutorials I...

How can I allow specific strings in an edittext and show these string to the user?

java,android,android-layout,autocomplete,android-edittext
I have an EditText in a layout. I want to "allow" the user to be able to enter only a string that is part of a predefined set of string I have (an array of 8 strings). How would I show the user the only options to type that are...

PyQt5 QTextEdit auto completion

python-3.x,autocomplete,pyqt,qtextedit,pyqt5
Looking for a way to have an auto completion with a QTextEdit and QCompleter. I have read that it is possible but didn't find any example... I'm using python3.4 and PyQt5 I'm looking for a very basic example thanks for any help...

Struts2 autocompleter of struts jquery tag not taking another value other then of list after setting forceValidOption to false [duplicate]

java,jsp,autocomplete,struts2,struts2-jquery
This question already has an answer here: Struts 2 jquery autocompleter with forceValidOption=“false” 1 answer I have a jsp file in which i have a struts autocompleter box of struts jquery plugin. This box is not taking any other value which is not in the autocomplete list after setting...

Tokenizer plugin with autocomplete. Do I implement it properly?

jquery,autocomplete,tokenize
I am using the plugin found here - http://www.jqueryscript.net/form/Simple-jQuery-Tagging-Tokenizer-Input-with-Autocomplete-Tokens.html github - https://github.com/firstandthird/tokens dependecies - https://github.com/jgallen23/fidel Example uses: 1) Working example (source array is loaded in memory) - http://jsfiddle.net/george_black/brmbyL8x/ js code: (function () { $('#tokens-example').tokens({ source: ['Acura', 'Audi', 'BMW', 'Cadillac', 'Chrysler', 'Dodge', 'Ferrari', 'Ford', 'GMC', 'Honda', 'Hyundai', 'Infiniti', 'Jeep', 'Kia', 'Lexus',...

Using jquery-ui autocomplete in combination with dynamic form generation

javascript,jquery,html,jquery-ui,autocomplete
I have a form that can be dynamically updated by using a js script based on this script. A select-list is dynamically generated to allow selection of an attribute for the dynamically generated field. However, the list contains hundreds of unique attributes and I therefore want to add a "search"...

how to put a location name programmatically in Google JS autocomplete API and get the results?

javascript,api,autocomplete
When searching for Edinburgh napier university using google autocomplete API, I don't get the state and city, which should be scotland and edinburgh. I want that if the result doesn't include city and state, it takes the postal town name (which in our case is edinbrugh) and search for the...

Trouble with bootstrap 2.3 modal and autocomplete

jquery,twitter-bootstrap,autocomplete
I am using bootstrap 2.3 to build my site and an autocomplete jquery to get data from the database and suggest options to user in a textbox. I am having trouble with the right version for jquery to run both the modal of bootstrap and [autocomplete jquery plugin][1]. If i...

autocomplete jquery element.autocomplete is not a function

jquery,angularjs,autocomplete
Js import the files to my project, also try to do it from the official site url but not working. <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> It seems strange that this happens in all the examples I've seen of this function are identical to what I do, but the error persists for me. I...

Why isn't my autocomplete.js textfield responding to input (Drupal 7)?

drupal,autocomplete,drupal-7
I am trying to get auto complete to work for a text field in my Drupal installation. This is a large project, and I'm not yet familiar with Drupal and this large codebase. Please assume that I can make the simplest of mistakes. Okay, so I've been following the simple...

Eclipse is not compiling while programming and auto-complete doesn't work

java,eclipse,autocomplete,mercurialeclipse
I installed a new plugin for Eclipse (named AgentZero). I imported a project using MercurialEclipse, and the importing was ok. Now, while programming this project, there is no compilation. In addition, there is no auto-complete. When I am trying to use auto-complete, I get the following message: "This compilation unit...

javascript function not triggered onchange if jquery autocomplete used

javascript,jquery,asp.net,autocomplete
I have the following jquery autocomplete, which works fine. Once the textbox changes, it runs the javascript function using onchange="fieldchanged('1') The onchange runs fine if I manually type the text (don't select it from the autocomplete list). But if I select any value from the autocomplete list, the onchange="fieldchanged('1');" is...

ASP:Login : Password not autocomplete after enter Username

c#,asp.net,login,autocomplete,passwords
I used ASP:Login to take a Login form for my page. Now I have 2 problem and I try to find a solution but ... @[email protected] Now, I enter to login page. Type user, type password, then Enter Problem 1 : Enter key not focus to Login button. It's mean,...

Google auto complete address form on page load

google-maps,autocomplete
I have been following this example here: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform which shows how to have a field that implements the auto complete dropdown with Google maps, and then when the user selects an address to fill out the individual form elements (Like street name etc..). The address field will already be filled...

sublime 3 adds extra angular bracket on autocomplete

html,autocomplete,sublimetext3
I find on sublime 3 that if I autocomplete code I sometimes get an extra angular bracket. for example, If I start writing "<ht", I get an option to autocomplete the html tag, but the code produced looks like this: <<!DOCTYPE html> <!-- Extra angle bracket here --> <html> <head>...

jQuery UI autocomplete unexpected token “,”(comma)

javascript,jquery,jquery-mobile,autocomplete
I use the autocomplete and it works on PC just fine. However, when I try to debug it on a mobile device, that is the error I am getting. I have heard about jQuery mobile, is that a requirement if I want jQuery to work on mobile devices or not?...

Cant push autocomplete selected value to global array in JavaScript

javascript,jquery,jquery-ui,autocomplete
Im working on a project in which I have autocomplete with users list. when I try to push autocomplete selected value to global array I get an empty list when I do console.info(usernames) outside autocomplete function. var usernames=[]; $(document).ready(function(){ $(function(){ $( "#users" ).autocomplete({ source: function( request, response ) { $.ajax({...

Rails-JQuery-Autocomplete search multiple attributes

jquery,ruby-on-rails,ruby,ruby-on-rails-4,autocomplete
I'm using the rails-jquery-autocomplete gem to find a customer in a form. Controller class RfqsController < ApplicationController autocomplete :customer, :name, full:true view file <div class="field"> <%= f.label :customer %> <%= f.autocomplete_field :customer, :autocomplete_customer_name %> <%= link_to "new customer", new_customer_path, class: "new_customer_link"%> </div> Currently, It only searches by the customer name....

Emacs 24.5 install auto-complete error

emacs,autocomplete
I want to install auto-complete in Emacs, but there are always warnings. I use auto-complete on GitHub. I use the default config, but wrong: (add-to-list 'load-path "~/.emacs.d/plugin/auto-complete") (require 'auto-complete-config) (ac-config-default) I tried: (add-to-list 'load-path (file-name-as-directory (expand-file-name "~/.emacs.d/plugin/auto-complete"))) (require 'auto-complete-config) (ac-config-default) but it doesn't work. Windows 8.1 Emacs 24.5...

GooglePlacesAutocompleteAdapter (Android Places API) returning results outside of boundary

autocomplete,google-places-api
It seems that the sample code from Google that demonstrates the Google Places API for Android is returning results from outside of the given boundary. (https://github.com/googlesamples/android-play-places/). Searching for 'hardware' shows most results from Sydney (the hardcoded boundary), but also (occasionally) shows results from as far away as other cities (including...

WPF AutocompeteBox in datagrid Cell does not work properly

wpf,datagrid,autocomplete
I am testing the WPF AutoCompleteBox control in datagrid cell. I met two problems: 1) when i navigate to the autocomplete cell , it does not automatically switch to edit mode, 2) When I switch into edit mode and I type something, the list of suggesstions doesn’t appears and I...

How to simulate the float value that appears when you type on the input

html,css,autocomplete,ionic
It is very difficult to understand what I intend to do. I would like to simulate the float value that appears when you type on the input, but depending on what you want the person to load certain values in an array I define and enable the individual to select...

Amazon like auto-complete from two tables with elements in common

jquery,json,autocomplete
I have two Tables in database, Books and Films. I have some common elements. What I need is an auto complete just like that of amazon auto-complete. Suppose the common element is Harry potter. So when I type Harry potter the auto complete box should come as Harry potter in...

Autocomplete for leading dot doesn't work in swift

ios,xcode,swift,autocomplete
When I try to use the "leading dot syntax" in swift I don't get any autocomplete suggestion. Is there no autocomplete for this implemented or is it a problem with my Xcode (Version 6.3.1)? For example when I try something like this: let col: UIColor? = .whiteColor() I don't get...

rails - Elasticsearch completion suggester and search API

ruby-on-rails,autocomplete,elasticsearch
I'm using the search API, and now need to add the completion suggester, I'm using elasticsearch-rails gem. When I search for an article, everything works http://localhost:9200/articles/_search "query": { "multi_match": { "query": "test", "fields": [ "title", "tags", "content" ] } } } But since I've implemented the completion suggester I had...

autocomplete rails routes issues

jquery,ruby-on-rails,autocomplete
I'm using the rails-jquery-autocomplete gem for an rfq model to search customers. The autocomplete search works fine when I'm creating a new rfq, but I get this error when I try to use the search while editing a record. ActionController::RoutingError (No route matches [GET] "/rfqs/1/autocomplete_customer_name"): I know what the error...

How to modify JQuery autocomplete for characters greater that specified length?

javascript,jquery,autocomplete
I wrote a jQuery autocomplete code in my application, it works properly but now I want it to autocomplete only after minimum length is reached e.g. minlength=2 and in if condition if((('#id').val())>minlength) I tried following code var minlength = 2; $(document).ready(function () { var text = $('#patient_id').val(); $('#patient_id').autocomplete({ //var text...

How autocomplete in delphi?

delphi,autocomplete,delphi-7
I am using Delphi 7, when I write code in the unit, I want autocomplete the words of the tree's objects. For example, I have the next objets: LabelName, LabelEdge, LabelWindow, I want start write LabelN and have the possibility of autocomplete to LabelName. Is it possible?...

Using Devbridge Autocomplete, is there a way to detect no results?

javascript,jquery,ajax,forms,autocomplete
I'm using Devbridge Autocomplete (https://www.devbridge.com/sourcery/components/jquery-autocomplete) on an input field type text and reading results from an array. Is there a way to: 1) Only allow to select from the list of results and not type anything else in the field 2) If no results are found, trigger a function Code:...

ngAutoComplete with Google Suggest api

javascript,angularjs,autocomplete,google-api,google-suggest
AngularJS has ngAutoComplete that works with Google place perfectly. How can I make it work with Google Suggest API (the suggested keywords when typing in Google Search input box)? Is there something out of the box? If not, what is the best way to implement it? (if I need my...

Google maps Autocomplete api not same as specifications

google-maps,autocomplete,google-places-api
I'm teasing google places API and I run into strange behavior at Autocomplete that I don't understand. This is how I'm using it: const AUTOCOMPLETE_OPTIONS = { types: ['address'], componentRestrictions: { country: 'cz' } }; this.inputPlaceElement = $('#search-around-input') this.inputPlaceSearchBox = new google.maps.places.Autocomplete(this.inputPlaceElement[0], AUTOCOMPLETE_OPTIONS); google.maps.event.addListener(this.inputPlaceSearchBox,'places_changed', () => { console.log('place change') })...

Xcode, have delegate method auto-include classes

ios,xcode,autocomplete,delegates
In Xcode I would like to add a delegate such as UITextFieldDelegate and have methods such as textFieldShouldReturn auto added to my document In Java when I include an interface, my IDE typically forces me to auto-add some particular classes, which I tend to add code into. Is there any...

Msysgit git Bash change of behavior on autocomplete

autocomplete,msysgit,git-bash
Up to 1.9.4 git Bash, on hitting tab, would auto-complete up to ambiguity and then let me complete the rest (for branches, tags etc). As of 1.9.5 (version 1.9.5-preview20141217) it will present me with a list of the possible branches/tags etc and let me choose. I much preferred the previous...

Yii2 How to prevent autoloading of assetsbundle of any widget?

jquery,autocomplete,yii2
I am using \yii\jui\AutoComplete It automatically loads the JuiAssets. Is there any way to prevent loading files of JuiAssets? I want to use my own version of files. In the previous version of Yii Framework, we had option to prevent loading the associated css and js files of any widget....

Pycharm PyQt4 Autocomplete Not Working for Virtualenv

python,autocomplete,pyqt4,pycharm
For the past couple of days I've tried to get Pycharm autocomplete working for PyQt4 when running a virtualenv on Ubuntu 14.04. The code works perfectly fine, it's just that all the imports are marked as red and I get zero autocomplete when writing code. So far I've tried: copying...

How to access returned JSON's values on auto complete selection?

javascript,jquery,json,jquery-ui,autocomplete
I have this JSON format returned by server by some keyword typed in text box: [{"id":1,"value":"some string!"}] and I want when user selected an item, browser navigate to another page using selection's id; which exists in returned JSON. this is my auto complete code: $(function () { $("#search-box").autocomplete({ source: function...

Autocomplete and Fuzzy search across multiple indecies in Elasticsearch

search,elasticsearch,autocomplete,fuzzy-search
I have multiple indices populated in my elasticsearch engine. And I have one text search box which is supposed to query all indices for possible hits. I am planning to query these indices fuzzy and autocomplete. Any suggestion on how the implementation should look like?

YouCompleteMe can't autocomplete

c++,linux,git,vim,autocomplete
I want to develop C/C++ programs, so I installed YouCompleteMe for Vim through Vundle.but it can't work normally, In fact, it shows only the words contained in the current file.hope to help! my step are as follow: download Vundle.vim git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim #modify .vimrc set nocompatible filetype off set...

jQuery UI autocomplete missing _renderItem

javascript,jquery,jquery-ui,autocomplete,jquery-autocomplete
This is weird. $.fn.autoList = function () { return this.each(function () { var self = this; // initiate autocomplete $(self).autocomplete({ source: _li_data, minLength: 2, select: function (event, ui) { ui.item.checkbox.prop('checked', true).trigger('change'); ui.item.checked = !ui.item.checked; $(event.target).val(''); return false; } }) .data('autocomplete')._renderItem = function (ul, item) { if (item.checked) { return $("<li>")...

How can i add a onclick to resoponse of autocomplete

jquery,autocomplete
Here is my script $('#id').autocomplete({ source: function( request, response ) { $.ajax({ url : path, dataType: "json", data: { id: request.term }, success: function( data ) { response( $.map( data, function( item ) { return { label: item.id, value: item.id } })); } }); }, autoFocus: true, minLength: 0 });...

Autocomplete Search With Link

php,mysql,mysqli,autocomplete
So I'm Creating A School Management System And On The View Students Page I'm Wanting A Autocomplete Search System That Returns A Link Which Will Link To Another Page But It Needs To Look Through The Students Table To Get The id For The Page As Its viewrecord.php?id= then the...

How to filter values in Multiple selection using textbox value

javascript,jquery,html5,drop-down-menu,autocomplete
I have a text box and multiple selection box. When ever I write something in text box it will filter that text in the multiple selection and show only matched value. <!DOCTYPE html> <html> <body> <select id="uniqueCarNames" name="cars" multiple> <option value="volvo">Long Distance Travel</option> <option value="saab">Amazing </option> <option value="opel">Excellent Travelling</option> <option...

text change event sj:autocompleter struts2 jquery

struts2,autocomplete,jquery-autocomplete,struts2-jquery
Here is what I am trying to do. If the user makes a selection from the suggested options then I display a div tag using jquery. I use onCompleteTopics to fire this event. Now when the user makes any changes to the text box I want to hide the div...

ACE Editor Autocomplete - custom strings

javascript,google-chrome-extension,autocomplete,ace-editor
I'm using ACE Editor within a Chrome extension. I'm using ACE's Autocomplete feature but I want to be able to completely define a list of static strings to use for the autocomplete, instead of any local strings or snippets. (In the future I might be using something more sophisticated than...

Google Places AutoComplete + Android Fragment

android,android-fragments,autocomplete
I am a beginner on Android development and I came into a problem which I hope you can help me to solve. I'll keep it simple...i am trying to use Google Places autocompletion in a fragment...the app stops right from the beginning. My guess is the problem is when I...

Autocompletion for multiple js files in Cloud9

javascript,autocomplete,cloud9-ide,ace-editor
I'm trying to move my workspace to c9 because the Ace editor's autocompletion really pleased me when I worked on NodeJS projects. But now I would like to work on JS files client-sided. It is from this point autocompletion going wrong. Indeed, there is nothing such as "require" command in...

How can i specify the width for autocomplete in percentage?

jquery,autocomplete
I am trying to add the width in this jquery code with percentage, but it is taking the width in pixels. how can i specify the width in percentage? <script type="text/javascript"> var autocm = jQuery.noConflict(); autocm().ready(function() { autocm("#search").autocomplete("php/getvalues.php", { width: 500, matchContains: true, //mustMatch: false, //minChars: 0, //multiple: true, //highlight:...

Can SublimeJEDI autocomplete custom/external class instances?

python-3.x,autocomplete,sublimetext3
For example: from PIL import Image if __name__ == "__main__": im =Image.open("room.tif") Image.Image. when my cursor is at the dot after Image.Image. and I press Ctrl+Space it will show the following: However, if I type im. and press Ctrl+Space it will show nothing. Why does SublimeJEDI not recognize that im...

AutoComplete in ipython with pandas Seems to be broken

python,pandas,autocomplete,ipython
I have a pandas dataframe named frame I want to invoke the frame[SomeCoulmnname].value_counts() method The issue is that ipython doesnt autocomplete even after i type v after the . In fact it doesnt even return any suggestions. But if i simply type Series. and press the tab it return me...

Facing error on Maps API v3 Places Autocomplete Form

jquery,google-maps,google-maps-api-3,autocomplete
I am using Maps API v3 Places Autocomplete form last few month for my project but when I am adding to another page Places Autocomplete is not working. I am getting error on this line: for (var component in componentForm) { document.getElementById(component).value = ''; document.getElementById(component).disabled = false; } and getting...

I want to enable Autocomplete when user select a value in select box and disable when user dis-select

php,jquery,autocomplete
1.I want to enable Auto-complete when user select a value in select box and disable when user dis-select $("#selectorText").autocomplete({ source: function (request, response) { $.getJSON("URL", { term: $('#selectorText').val();/this the select box value }, response); }, minLength: 1, select: function (event, ui) { $(this).val(ui.item.value); } }); 2.This for default disable auto-complete...

Autocomplete-like interface with separate ID field?

jquery,autocomplete,html-select
I'd like to use jQuery Autocomplete to offer a sort of interactive dropdown in my form. However, I'd like to display 2 fields - the ID and the description. While it is easy to output both, I can't find a way to keep the ID and the text you want...

Providing descriptive help context for Enums in C# Visual Studio?

c#,visual-studio,autocomplete,ide
Is it possible to have help context displayed for each individual enum on code drop down display? (i.e. control space ?) e.g. public enum Moods { Depressed = 1, ///On Rainy Days use this BlownAway = 2, ///On Stormy nights use this Ferengi = 3 //Use this for Profit and...

selectize.js reload dropdown

javascript,jquery,json,autocomplete,selectize.js
I have a dropdown with id "selectCountry" filled by ajax and on success I just bind the Selectize. $('#selectCountry').selectize({ create: true, sortField: 'text' }); When I rebind my original dropdown by ajax and try to reload/rebind or refreshed the old selectize auto complete box on success, there would be no...

django-haystack autocomplete returns too wide results

django,autocomplete,elasticsearch,django-haystack
I have created an Index with field title_auto: class GameIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, model_attr='title') title = indexes.CharField(model_attr='title') title_auto = indexes.NgramField(model_attr='title') Elastic search settings look like this: ELASTICSEARCH_INDEX_SETTINGS = { 'settings': { "analysis": { "analyzer": { "ngram_analyzer": { "type": "custom", "tokenizer": "lowercase", "filter": ["haystack_ngram"], "token_chars": ["letter", "digit"] }, "edgengram_analyzer": {...

JQuery ui autocomplete in a MVC partial view only works once

javascript,jquery,ajax,asp.net-mvc,autocomplete
I've been trying to get autocomplete to work for my partial view using JQuery ui. The partial view is updated using AJAX. The problem is that the autocomplete only works up until the point where the partial view is updated. This is my partial view <div id="tagList"> @using (Ajax.BeginForm("AddToTagList", new...

jQuery autocomplete strange behavior

javascript,jquery,autocomplete
I've got an issue with jQuery's autocomplete. What I am trying to do is show a suggestions list based on input. So, for instance, on input class="font" I want to have a list of font sizes and on input class="color" to have a list of color predictions. Here is what...

Uncaught TypeError: Cannot read property 'length' of undefined JQUERY autocomplete

javascript,jquery,json,autocomplete
This scripts are used, https://www.devbridge.com/sourcery/components/jquery-autocomplete/ I am using Jquery Autocomplete for searching users from my DB, Below is controller which returns Json, public function searchusers1() { if($_GET) { $query = $this->input->get('query'); $searcharray = $this->model_usermanage->searchuser($query); $a_json = array(); $a_json_row = array(); foreach($searcharray as $row) { //$user_firstname = htmlentities(stripslashes($row['user_firstname'])); //$user_lastname =...

Genemu autocomplete won't work

forms,symfony2,autocomplete
I'm trying to use genemu autocomplete to display a list of entities. I followed every step, but for some reason, it doesn't work : all I got is a text input, and nothing shows up when I type something inside. So far, my build looks like this : ->add('departure', 'genemu_jqueryautocompleter_entity',...

Why isn't there a working solution for disabling browser caching?

html,forms,google-chrome,autocomplete,field
I have a registration (unique) form for which I want to disable the memory of the email and password field so that it won't autocomplete. Now I tried all methods. autocomplete=off for the fields, explicitly setting the field to blank as well as disabling caching with meta tag. Nothing worked....

How to send the selected value in a autocompleter as a parameter in a URL?

java,jquery,url,autocomplete,struts2
I'm working with Struts 2 and jQuery plugin . I have a JSP with a sj:autocompleter which need to submit its value as a parameter in a sj:a. <s:url id="loadClientURL" action="loadClient"/> <sj:autocompleter id="client" name="client" list="listClient" href="%{loadClientURL}" formIds="guardarVBForm" loadMinimumCount="2" size="70" /> <s:url id="myActionURL" action="myAction"> <s:param name="client" value="%{client}"/> </s:url> <sj:a href="%{myActionURL}" cssClass="btn"...

Completing second argument from known list

bash,autocomplete
I am writing bash script. It receives two arguments. The first is just a string that the user can specify however she wants. The second argument however has to be a member of a known set, e.g. apple, banana, pinenut or pineapple. I know how to check if the parameter...

JQuery And JavaScript Search AutoComplete

javascript,jquery,search,input,autocomplete
I have an HTML code with this line: <input id="search" type="text" placeholder="Search"> And a JS file with those: var arr = ["A", "B", "C", "D"]; $('#search').autocomplete({ source: arr }); I am trying to make a autocomplete for a search engine, But i cant display my results in my HTML Web...

Searching for multiple partial phrases so that one original phrase can not match multiple search phrases

javascript,algorithm,data-structures,autocomplete,autosuggest
Given a predefined set of phrases, I'd like to perform a search based on user's query. For example, consider the following set of phrases: index phrase ----------------------------------------- 0 Stack Overflow 1 Math Overflow 2 Super User 3 Webmasters 4 Electrical Engineering 5 Programming Jokes 6 Programming Puzzles 7 Geographic Information...

Get data value from php array with autocomplete jquery/ajax

php,jquery,mysql,ajax,autocomplete
I try to use the plugin from "devbridge autocomplete" : https://www.devbridge.com/sourcery/components/jquery-autocomplete/ I would like to get 3 values from my search.php page (and not just 1). It works for "value" but not for "data1" and "data2" (result for each = null) My jQuery code : $('#search-adress').autocomplete({ serviceUrl: 'search.php', dataType: 'json',...

Javascript Google Place API library not getting loaded dynamically

javascript,autocomplete,google-places-api
My javascript code var script = document.createElement('script'); script.src = 'https://maps.googleapis.com/maps/api/js?libraries=places'; script.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script); script.onload = function(){ var autocomplete; autocomplete = new google.maps.places.Autocomplete( (document.getElementById('autocomplete')), { types: ['geocode'] }); I get this error Cannot read property 'Autocomplete' of undefined at HTMLScriptElement.script.onload (mabapamavo.js:18:40) The above same code...

javascript html placeholder error

javascript,html,autocomplete
Hello I have the following code on jsfiddle <label for="email">Kerko:</label> <input class="form-control" type="text" name="kerkim" id="input_main"> <label for="name"> Vendi:</label> <input type="text" class="form-control"> var placeholders = ['Elektricist','Hidraulik','Avokat','Doktor','Luleshites']; (function cycle() { var placeholder = placeholders.shift(); $('input_main').attr('placeholder',placeholder); placeholders.push(placeholder); setTimeout(cycle,2500); })();...

Show autocomplete suggestions on another event

javascript,jquery,events,autocomplete,show
I have two inputs - #postal and #name. #name input has a jQuery autocomplete function enabled. Suggestions for autocomplete are shown only when I start typing something into #name input. I need to show suggestions of #name input even if I type something into #postal input too. I was trying:...

Use jquery ui autocomplete to search JSON output in MVC

javascript,jquery,json,autocomplete,jquery-ui-autocomplete
I am trying to search my users table using the jquery ui autocomplete widget. The two fields from my users table, which I would like to search for: TABLE `users` `user_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `user_email` varchar(64) COLLATE utf8_unicode_ci NOT NULL The view <script> $(function() { $.ajax({ url: "/friend/showFriends",...

Implement auto-complete feature using MongoDB search

regex,mongodb,autocomplete
I have a MongoDB collection of documents of the form { "id": 42, "title": "candy can", "description": "canada candy canteen", "brand": "cannister candid", "manufacturer": "candle canvas" } I need to implement auto-complete feature based on the input search term by matching in the fields except id. For example, if the...

I cant get the ionic autocomplete to work with

angularjs,cordova,autocomplete,ionic-framework
I am using guylabs/ion-autocomplete but facing some problems when running it in the ios and android emulator. Beforehand I made a mockup running it in the browser and this worked fine, but when copying the same code to my actual project I got an error. Could someone please help me.....

asp.net apply jquery autocomplete to same boxes with same suffix

jquery,asp.net,autocomplete
I have a jquery autocomplete in my asp.net webform which I would like to use on various textboxes within the page. I have managed to make it work if I put the full ID of the textbox but, obviously, it only works on that textbox. All textboxes end on _CUR...

Is it possible to get the autocomplete functionality in AppsScript's script editor to work on custom classes?

javascript,autocomplete,google-apps-script
If I construct a class in AppScript and add a method, is it possible to get the autocomplete feature to work when I type a period after an instance of that class? Google's documentation says "If you want your library users to make use of Script Editor autocomplete and the...

Utilizing BinarySearch to do an Autocomplete exercise

java,arrays,autocomplete,binary-search
Hi I'm making a program that takes an array of "Terms" each of which have their own weights (Long value) and queries (String value). It should take many terms from a .txt file and initialize them into a private "Terms" array, and then it uses arrays.sort to rearrange their queries...

Jquery Autocomplete remembers the previous selection

javascript,jquery,autocomplete
The requirement is to display autocomplete addresses based on the region selected. The Jquery autocomplete is called everytime the region changes. I am getting the correct autocomplete addresses based on the region. But along with the new address list, I also get the address list for previously selected regions. To...

Jquery autocomplete cusom data error no such method 'instance' for autocomplete widget instance

javascript,jquery,jquery-ui,autocomplete,jquery-autocomplete
I am adding the autocomplete functionality to textbox. Referring the https://jqueryui.com/autocomplete/#custom-data this jquery autocomplete custom data plugin. Without custom data code it is working fine. I have added following custom data code .autocomplete( "instance" )._renderItem = function( ul, item ) { return $( "<li>" ) .append( "<a>" + item.label +...

nullglob disables pathname tab-completion

bash,autocomplete,glob,bash-completion
I have found that shopt -s nullglob apparently disables tab-completion for files and directories, and shopt -u nullglob restores it. Why does tab-completion for directories apparently rely on nullglob being unset? I am using Bash 4.2.37(1)-release on Debian 7....

Calculate a total from autocomplete suggestion.data

jquery,html,autocomplete,totals
I'm trying to write a small Jquery program with an autocomplete searchform. I would like the user to be able to add items from the autocomplete form to a sort of shopping list. I have difficulties finding a way to calculate and update the total price of all added products,...

Google Places API Place.TYPE_ADDRESS missing?

android,google-maps,autocomplete,google-places-api
Using Google Places API for Android, I'd like to know how to create an AutocompleteFilter of type address. Specifically I don't know what value(s) to use for the placeTypes parameter in the AutocompleteFilter.create method (see https://developer.android.com/reference/com/google/android/gms/location/places/AutocompleteFilter.html). According to documentation (https://developers.google.com/places/supported_types#table3), the supported types are: geocode instructs the Place Autocomplete service...

How to get array from response inside search method of jquery autocomplete

jquery,autocomplete
I have URL which is returning array. I need to add or delete some keys according to requirement. I need to get that array inside a search function so that I can modify it. fiddle. How can I get that URL. $( "#tags" ).autocomplete({ source: ["ask","always", "all", "alright", "one", "foo",...

Kendo Scheduler - Add AutoComplete Search in Event Template

asp.net-mvc,autocomplete,kendo-ui,kendo-asp.net-mvc,kendo-scheduler
I'm using the Kendo Scheduler with resources for ASP.NET MVC, to manage the bookings in different fields of a sport center The sport center has more tan one thousand customers, so I don't want to display a dropdownlist in my custom event template when I create a new booking My...

Autocompletion doesn't autocomplete

javascript,autocomplete,local-storage,html-form
Here is a page with: <form action="action.php" method="get" autocomplete="on"> First name:<input type="text" name="fname"><br> E-mail: <input type="email" name="email"><br> <input type="submit"> </form> Let's enter the 2 fields, and submit. Then when reloading the page, the fields are not autocompleted, why? Should I use local-storage? cookies? to be sure that a user that...

Open AutoCompleteField on click

java,eclipse,autocomplete,awt
I'm using the Eclipse AWT framework, and I've got a combobox. I've set the visible amount of items in the combobox to 0, so that clicking the dropdown doesn't show anything (even though the box is populated). I have an AutoCompleteField on the box, so that anyone typing into the...