My KendoUI Autocomplete example works in Chrome but not in Firefox.
I am able to type in a town name e.g. "watford" and get a result displayed in chrome.
Using FireBug, I can see that I am returning valid JSON result, but get a 'TypeError: e is undefined' error message.
http://jsfiddle.net/franH/znkV3/14/
var app = new kendo.mobile.Application(document.body, {
transition: 'slide'
});
$(document).ready(function() {
$("#autoComplete").kendoAutoComplete({
minLength: 7,
dataTextField: "title",
filter: "contains",
placeholder: "Select town...",
animation: {
open: {
effects: "fadeIn",
duration: 2000,
show: true
}
},
close: function(e) {
var str1 = "Dropdown Item Selected:" + " " + e.item;
alert(str1);
},
dataSource: new kendo.data.DataSource({
transport: {
read: {
url: "http://api.geonames.org/wikipediaSearchJSON",
data: {
q: function() {
return $("#autoComplete").data("kendoAutoComplete").value();
},
maxRows: 10,
username: "pete"
}
}
},
schema: {
data: "geonames"
}
}),
change: function() {
this.dataSource.read();
}
})
});