Autocomplete with cross domain
Hi,
I am trying a autocomplete with cross domain, a request which will give a json which has xml, i parse the json and get the xml and builded the auto complete, it works perfectly firefox, chrome, safari but fails in IE8, it seems i am getting the response from the server but the b._response.apply is getting undefined in IE8, but all other browsers getting the list,
This is what i am trying
$( "#city" ).autocomplete({
source: function( req, response ) {
url=AUTOCOMPLETE_URL;
url=url+"&q="+req.term
$.ajax({
url: url,
dataType: "jsonp",
success: function( data ) {
var results = [];
results= processResults(data,results);
response(results);
}
});
},
minLength: 3
});
function processResults(data,results){
$(data.items[0].value).find('Location').each(function() {
var name = $.trim($(this).find('Name').text());
};
results[results.length] = {
'label':name,
'value': name
}
});
return results
}
Hope the above help some one get into the issue
Hoping to get solution very soon
With Regards
Suresh J