i know, there is a gcomplete plugin, but i try to build my own.
My problem is that i dont get an answer.
JS
$.get("http://www.google.com/complete/search?qu=chicken", function(data)
{
$('body').append("Data Loaded: " + data);
$.each(data, function(i)
{
$('body').append('- '+data[i]+' <br />');
});
});
Hope somebody can help me.
Example
http://www.jsfiddle.net/V9Euk/652/
Thanks in advance!
Peter
You need to make your datatype JSONP because you’re getting the data from a different domain, for this you’ll need to use the AJAX function rather that get
http://www.jsfiddle.net/V9Euk/653/