no matter what i do, i couldn't get alert("test"); to display an alert. for some reason this jsonp (although it fetches the data correctly: http://u.kodingen.com/1JsHcN ) never calls the success function.
if i copy and paste the example here: http://jqueryui.com/demos/autocomplete/#remote-jsonp it works beautifully. but my URL doesn't.
any ideas?
$("#venue_in").autocomplete({
source: function(request, response) {
$.ajax({
url: "http://x.com/y.php",
dataType: "jsonp",
data: request,
cache: false,
success: function(data) {
alert("test");
response(data);
}
})
},
minLength: 2,
});