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/
You should be using the
sourceattribute, since the jQuery UI autocompleter depends on it. There is an example in the autocompleter documentation. You can move your existing.ajaxfunction as in the demo.