Hi, I am getting street addresses in alert box, but unable to print it
in my report using javascript. Help!
Please check the following javascript code I am using:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function reGeoCoding()
{
var address=new GLatLng(latArray[i].text,lngArray[i].text); // lat
and long values from an array
geocoder = new GClientGeocoder();
geocoder.getLocations(address,getAddress); // getAddress is a
callback function
function getAddress(response)
{
place = response.Placemark[0];
p=place.address;
alert(p); // I am getting addresses in this alert box,but unable
to print it using document.write(p);
}
}
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I am calling the the reGeoCoding(); function as follows:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<td width="40%" height="100%"><script>reGeoCoding();</script></td>
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Any kind of help is appreciated and thanks in advance.
VJSH_PV
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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.