Load genxml.php with a random parameter to prevent the browser from
using a cached copy, for example:

var url = 'genxml.php?dummy=' + Math.random();

Other than that, in the future please follow the posting guidelines
and post a link to your page:
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

--
Marcelo - http://maps.forum.nu
--



On Apr 28, 8:33 am, chris <[email protected]> wrote:
> I have read and followed the following tutorial:
>
> "Using PHP/MySQL with Google 
> Maps"http://code.google.com/apis/maps/articles/phpsqlajax.html
> Pamela Fox, Google Geo Team
>
> 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?  The site I am running
> deals with real estate and users are constantly adding new homes using
> html forms and then I use php to post to mysql.  Once that data is
> inserted it would be beneficial to be able to open the map with all of
> the markers and see the newly inserted addressess.  It seems after
> following the tutorial the xml file only updates itself when it is
> opened in the browser, not when the map is opened which calls the URL
> of the xml generator.  Most of this I a very new to and I would
> imagine my problem is very simply just inserting some line of code to
> call and load the genxml.php file before the map is loaded.  Any help
> is greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
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