Why won't these alerts return in Javascript Google Maps API Geocode? -


i have following function geocodes address , neither of alerts within results bit work! have exact same code on instance of geocoder on page, , works fine! clues?

function geocoderegion(addressx) {         alert("geocoderegion running " + addressx);   geocoder2.geocode({address: addressx, partialmatch: true }, function geocoderesult(results, status){     if (status =='ok' && results.length >0) {       alert("geocode ran " + status);       //return results[0].geometry.location;     } else {       alert("geocode not successful following reason:" + status)     }   }); } 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -