Hi
I have a javascript function on a page which uses Google Geocoder to get lat/lng for a a given address(postcode)
After the lat/lng succeeds I want to call a Radjaxmanager request to do processing on server side.
ie. RadAjaxManager.ajaxRequest("DO SOMETHING!");
Calling the above code produces the following error
TypeError: access to strict mode caller function is censored
( IN Telerik.Web.UI.WebResource.axd )
Any help really appreciated :}
Full code below...
Regards
Martin
================================================================
function GetLatLng(address) {
var geocoder = new google.maps.Geocoder();
geocoder.geocode({ 'address': address + ", UK", region: "UK" }, function (results, status) {
var latitude = 0;
var longitude = 0;
if (status == google.maps.GeocoderStatus.OK) {
latitude = results[0].geometry.location.lat();
longitude = results[0].geometry.location.lng();
} else {
// Postcode/Address NOT found!
}
alert("START REQUEST");
RadAjaxManager.ajaxRequest("DO SOMETHING!");
alert("END REQUEST");
});
}
I have a javascript function on a page which uses Google Geocoder to get lat/lng for a a given address(postcode)
After the lat/lng succeeds I want to call a Radjaxmanager request to do processing on server side.
ie. RadAjaxManager.ajaxRequest("DO SOMETHING!");
Calling the above code produces the following error
TypeError: access to strict mode caller function is censored
( IN Telerik.Web.UI.WebResource.axd )
Any help really appreciated :}
Full code below...
Regards
Martin
================================================================
function GetLatLng(address) {
var geocoder = new google.maps.Geocoder();
geocoder.geocode({ 'address': address + ", UK", region: "UK" }, function (results, status) {
var latitude = 0;
var longitude = 0;
if (status == google.maps.GeocoderStatus.OK) {
latitude = results[0].geometry.location.lat();
longitude = results[0].geometry.location.lng();
} else {
// Postcode/Address NOT found!
}
alert("START REQUEST");
RadAjaxManager.ajaxRequest("DO SOMETHING!");
alert("END REQUEST");
});
}