using virtually the same code as in the docs, the location is never being prompted for.
also the "message" var is returned as "Result of expression".
Code:
var geo = new Ext.util.GeoLocation({
autoUpdate: false,
listeners: {
locationupdate: function (geo) {
alert('New latitude: ' + geo.latitude);
},
locationerror: function (geo, bTimeout, bPermissionDenied, bLocationUnavailable, message) {
if (bTimeout) {
Ext.Msg.alert(message, 'Oh noes! Your device has not reported back a location in a timley mannor . Doing search based off of our Home Office.', Ext.emptyFn);
} else if (bPermissionDenied) {
Ext.Msg.alert(message, 'Oh noes! Access to your location has been denied. Doing search based off of our Home Office.', Ext.emptyFn);
}else if (bLocationUnavailable) {
Ext.Msg.alert(message, 'Oh noes! We are unable to determin your location. Doing search based off of our Home Office.', Ext.emptyFn);
} else {
Ext.Msg.alert(message, 'Oh noes! We couldn\'t find you. Doing search based off of our Home Office.', Ext.emptyFn);
} }
}
});
any idea's or updated docs?