jquery autocomplete this.source is not a function error

autocomplete is not a function
autocomplete is not a function mvc
jquery autocomplete not working on clone
jquery autocomplete response
jquery autocomplete ajax error handling
jquery autocomplete delay
jquery autocomplete plugin
jquery autocomplete from database javascript

I've implemented autocomplete on an input field, but the box does not show up and firebug returns "this.source is not a function". I've used autocomplete on other fields of the same page without any problems. (two textarea's).

I'm using the following code to debug, same effect if I run from script file or Firebug command line.

var fakedata = ['test1','test2','test3','test4','ietsanders'];
$("#omschrijving").autocomplete(fakedata);

running jquery 1.4.2 and jquery ui 1.8.2, both minified versions.

Does anyone have an idea how autocomplete works fine on the textareas but causes this malfunctioning on inputs?

Error & Stack trace:

this.source is not a function
http://facturatie.autodealers.nl/dev/resources/js/jquery-ui-1.8.2.custom.min.js
Line 570
close(Object { name="a"})jquery....min.js (regel 570)
close(Object { name="a"}, Object { name="c"})jquery....min.js (regel 570)
response()

Answer is that the first parameter of the autocomplete should be an object containing the "source" property. This works

var fakedata = ['test1','test2','test3','test4','ietsanders'];
$("#omschrijving").autocomplete({source:fakedata});

this.source is not a function · Issue #1 · bossanova808 , I suspect you're running in to an error of jquery-ui's autocomplete clashing /​3308935/jquery-autocomplete-this-source-is-not-a-function-error. The links were correct i was using. But because i was retrieving links online i didnt put in http at the beginning. So the links would now be :

If you were trying to use autocomplete from http://www.devbridge.com/projects/autocomplete/jquery/#demo, it now collides with the autocomplete method in jQuery UI. I had the same problem and later noticed that I could just use the jQuery UI implementation.

(NOTE: It appears that this page's documentation is wrong: http://docs.jquery.com/Plugins/Autocomplete#Setup)

this.source is not a function, I'm trying to use autocomplete in a modal, so to get it working at all I had i get an uncaught type error: this.source is not a function, pointing to:. first invoker in my case was the _search function of the autocomplete so I've added this to have the function predefined "source" is also defined in _initSource and it seems that sometimes other functions can't catch up with _initSource and there's a failure

If you use it with jQuery UI library it also has plugin named autocomplete. In this case you can use plugin alias devbridgeAutocomplete:

$('.autocomplete').devbridgeAutocomplete({ ... });

This solve the problem with jQuery UI collision

this.source is not defined in jquery.ui.autocomplete.js - jQuery, when you add this, you won't have the error "this.source is undefined on line 201 in jquery" first invoker in my case was the _search function of the autocomplete​  Replied by kath on topic jQuery autocomplete is not a function ok thanks - to make sure i got you right: you write in alternative 1: 'just make sure that both jQuery and jQuery UI is loaded'.

As Shelton stated, the version from devbridge.com (1.1.3) collides with jQuery UI (1.8.4). Got it working by making sure the devbridge version loads after jQuery UI's version.

javascript jquery autocomplete this.source is not a function error , javascript jquery autocomplete this.source is not a function error? var fakedata = ['​test1','test2','test3','test4  $ ( ".selector" ).autocomplete ( { autoFocus: true }); This option is an Integer representing number of milliseconds to wait before trying to obtain the matching values (as specified by the source option). This can help reduce thrashing when non-local data is being obtained by giving the user time to enter more characters before the search is

Had similar problem for tagedit/autocomplete. It seems you also want to disable the autocomplete. Setting the source to false avoids these errors.

Solution:

options.autocompleteOptions.source = false;

jquery autocomplete this.source is not a function error, I've implemented autocomplete on an input field, but the box does not show up and firebug returns “this.source is not a function”. I've used  +1. Can confirm this issue when I try to implement this in Vue too, and all JS should all be included properly. The only solution here is to wrap the entire function into any JQuery function like you mentioned above, even an empty one would do.

jQuery autocomplete is not a function - Flexicontent, hi there, i get this error: "jQuery().autocomplete is not a function" It occurs in http[​]/components/com_flexicontent/assets/js/tmpl-common.js line 320 I I have an autocomplete form that was working completely fine. I leave my laptop and come back and now it doesn't work anymore. My database is named wallettest My table is named population and

jquery autocomplete this.source is not a function error, I've implemented autocomplete on an input field, but the box does not show up and firebug returns "this.source is not a function". I've used autocomplete on  SOLVED. In my case I noticed the order in which header scripts and css are imported or linked matters. autocomplete.js must be the first , then others can follow

How to solve jQuery autocomplete is not a function in Magento2.2.5 , Here is the solution: <link href="http://code.jquery.com/ui/1.12.1/themes/base/​jquery-ui.css" rel ="Stylesheet"> <script> <?php $zipdata = array(); $zipval  TypeError: $().autocomplete is not a function Sep 10, 2014 02:26 AM | laxmi347 | LINK i implemented autosearch by downloading autoomplete widgets and i added js and css in my project as well as to my view.

Comments
  • Which autocomplete plugin are you using? There are several variants.
  • Could you turn on stack tracing in firebug and post the function in which this occured?
  • I'm using the jQuery UI autocomplete as bundled in version 1.8.2 of the jQuery UI library. working on the stack tracing
  • And I found the answer, almost to embarrassed to admit that I just implemented it in the wrong way.
  • not so embarrassing, as it says different in some documentation. How where you to guess?
  • Also, you may see this error or similar if source is an object with keys, like { a:A, b:B, c:C }. Should be just single values, as in { "A", "B", "C" }.
  • In my case,` $(".div").autocomplete();` I was having this error because class .div didn't exist
  • This should get more ticks because that solved my problem.
  • This solved my issue too. Crazy. Oh, Stack Overflow, how I love thee (most of the time).