It's not possible to "push" updates from the server to the client. What
you have to do is "pull" the data from the client.
Run a timer in the client using setTimeout() or setInterval().
When the timer triggers, request new data from the server.
MSIE will attempt to cache the old data, so you either have to arrange
for you server to set headers that cause the data not to be cached, or
add a bogus parameter to the end of the URL, so that MSIE will treat is
as a different URL
var url = "positions.php?bogus=" + new Date().getTime();
When the data arrives in the client, erase the old data [typically with
map.clearOverlays()] then add the new data exactly like you did it the
first time.
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---