so sorry,
I only want to reduce code to read ease, but wrong input
------------------------------------------
alter the " var targets = eval(VisitDb2("9","false`" + escape
(localRegion),false,false)) " was executed,
the "alter(localRegion)" was showed,
the localRegion is delayed
my codeļ¼
var localRegion = "";
var localAttach = "";
GEvent.addDomListener(window,"load",function()
{
var geocoder = new GClientGeocoder();
geocoder.getLocations(xy, function(response)
{
if (!response)
{
//alert('server failure');
}
else if (response.Status.code != 200)
{
//alert("Status Code:" + response.Status.code);
}
else
{
var place = response.Placemark[0];
localRegion =
place.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName;
if (!
place.AddressDetails.Country.AdministrativeArea.Locality)
{
localAttach =
place.AddressDetails.Country.AdministrativeArea.DependentLocality.DependentLocalityName;
}
else
{
localAttach =
place.AddressDetails.Country.AdministrativeArea.Locality.DependentLocality.DependentLocalityName;
}
}
alter(localRegion)
});
var targets = eval(VisitDb2("9","false`" + escape
(localRegion),false,false))
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---