Ich bekomme Antwort in JSON, aber dies wird nicht analysieren die JSON-Antwort. Was mache ich falsch? i could'nt alles auf doc werfen Sie müssen nur http://docs.jquery.com/Plugins/Autocompletejquery Autocomplete mit JSON Antwort
$("#users-allowed").autocomplete("/people/following.json", {
width: 320,
//max: 4,
highlight: false,
scroll: true,
scrollHeight: 300,
formatItem: function(response, i, max) {
console.log(response);
console.log(response['items']);
console.log(response.items);
return i + "/" + max + ": \"" + response.status_code + "\" [" + response.status_description + "]";
//return "<img src='images/" + value + "'/> " + value.split(".")[0];
},
formatResult: function(response) {
//return value.split(".")[0];
return response.status_description;
}
});
BTW das ist die richtige Antwort mit Hilfe von Karim79 – Basit
Hallo Basit, ich habe das gleiche Problem, was ist, dass Sie getan haben, weil ich eine data.split bekomme keine Funktion – Angela
Ich habe versucht, diese Antwort zu folgen und es doesn arbeite nicht. Das Argument formatItem function ist nicht definiert. –