Hi, I build a js script which return the address for a latitude/longitude. It works but once a while it return script error popups in Internet Explorer 8 even when "Display a notification about every script error" is disabled and the "Diable script debugging" options are enabled...
The application which calls the script will freeze, because it expects a useraction... The errors I receive are: '_mF.57' is null or not an object URL: 'http://maps.gstatic.com/intl/nl_ALL/mapfiles/270a/maps2.api/ main.js line: 3 char: 180 'undefined' is null or not an object URL: 'http://maps.gstatic.com/intl/nl_ALL/mapfiles/270a/maps2.api/ main.js line: 353 char: 71 The application logs how the script is called, when I manually call or the application tries the same call again, it succeeds... This is the script I use: function load() { try { if (GBrowserIsCompatible()) { geocoder = new GClientGeocoder(); if(geocoder) { latlng = new GLatLng(lat, lng); if (latlng) { geocoder.getLocations( latlng, function(addresses) { if(addresses.Status.code != 200) { window.location = "reverse_geocoder.php? address=&area=&country="; } else { addressdetail = addresses.Placemark[0]; address = addresses.Placemark[1]; var _Country = ""; var _Area = ""; var _Address = ""; if(address != null) { if(address.AddressDetails.Country != null) { _Country = address.AddressDetails.Country.CountryName; _Address = addressdetail.address.replace(_Country, ''); if(address.AddressDetails.Country.AdministrativeArea != null) { _Area = address.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName; _Address = _Address.replace(_Area, ''); } } _Address = _Address.replace(/^\s+|\s+$/g, "").replace(/ (^,)|(,$)/g, ""); } else if(addressdetail != null) { _Address = addressdetail.address; } window.location = "reverse_geocoder.php?address=" + _Address + "&area=" + _Area + "&country=" + _Country; } }); } } } catch(err) { window.location = "reverse_geocoder.php? address=error&area=&country="; } } Does anyone has a clue why I receive these script errors? -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
