Reputation: 14490
I am trying to retrieve suggest queries from google's API and I keep getting an error:
Uncaught TypeError: Property 'source' of object #<Object> is not a function
The file is being parsed properly and in firebug/dev tools it shows that the callback is being retrieved without any errors. It seems to be an autocomplete error.
jsFiddle: http://jsfiddle.net/xrDjk/
Upvotes: 0
Views: 5741
Reputation: 160181
You should be using the source
attribute, since the jQuery UI autocompleter depends on it. There is an example in the autocompleter documentation. You can move your existing .ajax
function as in the demo.
Upvotes: 1