Hello guys:
Sorry, I can not give the link which is not allowed by the company.
So, I have to show the code.
//var flag =false;
var geocoder = new GClientGeocoder();
if (geocoder) {
geocoder.getLatLng(location, function(point) {//flag = true;});}
//while(flag == false){
//;}
document.queryform.submit(); // form
My problem is 'document.queryform.submit();' will be executed before
finish of function(point). It seems that the program new a new thread
for implementing function(point). I can set a flag and check
iteratively if it has been changed in the function(point), but this
loop consumes too much resource and the browser show warning each time
this program is executed.
So, is there any better solution for waiting the finish of
function(point).
--
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.