On Apr 28, 7:33 am, chris <[email protected]> wrote:
> Great article.  Everything works great.  But there is one more problem
> that I cannot seem to solve.  When new addresses, lat, and lng are
> inserted into mysql database, how do I get those new addresses to show
> on the map or load/update automatically without having to open the
> generate xml file in the browser every time?

It appears you're using MS IE7, which has an aggressive caching
policy. That means that when your page gets to this line
   GDownloadUrl("phpsqlajax_genxml.php", function(data) {
it will happily retrieve the XML from its cache.

You can get round that by adding a parameter which changes the URL
each time, so that IE thinks it hasn't already got the file and needs
to get it again, something like
  "phpsqlajax_genxml.php?dummy="+(new Date())

Retrieving the file from the browser address bar refreshes the version
in the cache, which is why that works at the moment. Browsers with a
less aggressive policy (like Firefox) generally don't need the
changing parameter.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to