Saturday, September 4, 2010

Re: Update the status of GDownloadUrl

> The problem is that I want this
> document.getElementById("cellStatus").innerHTML=""; to be fired only once
> both the getGeoFence(); and getVehicleList(); have completed its task but it
> gets fired event before the functions are completed.

Set some global flag to false.
When either of the the GDownloadUrl() callbacks is run, ceck the value
of the flag.
If the flag is false, set it true but do nothing else.
If the flag is true, update your display (it will only happen when
both callbacks happen)

Not a maps question, this is 'how do I write javascript'.

--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate