On Mar 13, 5:18 am, Dom <[email protected]> wrote: > Hummm, this is a good idea. > I will use it if anybody can tell me if there is a way to force > refresh of XML file.
If the xml file is static and doesn't have errors (and the browser is IE), I find that opening the xml directly in the browser and forcing a refresh loads the new content, which is then viewable on the map... If there are errors in the xml, IE doesn't seem to ever want to reload it (short of closing down the browser). -- Larry > > Dominique > > On 13 mar, 12:49, Andrew Leach <[email protected]> wrote: > > > On Mar 13, 11:17 am, dommm063 <[email protected]> wrote: > > > > Is there a way to force browser to load last version of XML file ? > > > Yes. > > > GDownloadUrl("data.xml?"+Math.random(),...) > > > You could also use a date function which is guaranteed to be different > > between calls (random numbers aren't random). The purpose of changing > > the URL is to defeat the caching mechanism in the browser. > > > Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
