Hey guys,
Im using jquery autocomplete from jqueryui to try retrieve results from a simple search.
The problems is when i type e.g "Deser" the results from this is about 100 rows containing other words that there arent in the term typed.
Im new on using jquery so, i really don´t know what ´s going on.
Hre is my code used:
$("#city").autocomplete({
source: function (request, response) {
$.ajax({
url: "http://api.giantbomb.com/games/?api_key=MYKEY&format=jsonp&json_callback=myCallback",
dataType: "jsonp",
jsonpCallback: 'myCallback',
data: {
featureClass: "P",
style: "full",
maxRows: 12,
name_startsWith: request.term
},
success: function (data) {
response($.map(data.results, function (item) {
return {
label: item.name,
value: item.name
}
}));
}
});
Log in to comment