> I try to setTimeout, but it doesnot work.
Sure setTimeout() works. However setInterval() is more suitable for
the purpose.
Without seeing your page, I quess that you have a browser cache
problem. You cannot see the updated file on map because the file comes
from browser cache. The common workaround is to change the filename
with a random parameter.
setInterval(function(){
var random = "?=" + (new Date()).getTime();
downloadUrl("phpsqlajax_genxml.php" + random, function(data){ ...
}, 10000);
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.