On Jan 3, 2:37 pm, freddy000 <[email protected]> wrote: > bonjour , > je fais une petite application avec google maps qui consiste a > extraire des données depuis une base mysql et générer avec un fichier > xml , utiliser ce fichier après comme source pour un code javascript > qui se charge de créer des "markers" avec ces données , > > je voudrais rendre l'appel a ce fichier xml "automatique" donc sans > besoin d'actualiser moi même la page web , les marqueurs se mettent a > jour automatiquement , > > merci d'avance
Translated to english: + hello, + I am a small application with Google maps which is a + extract data from a mysql database and generate a file + xml file after using this source code for javascript + which is responsible for creating "markers"with these data, + + I would like to call the xml file has "automatic" so without + need to update myself on the web page, the markers begin to + automatically update, + + thank you in advance Browsers tend to cache the xml, so if you want to access it again and redraw the markers on your map when the xml changes, you need to: 1. set up your code to periodically requery the xml and redisplay it (you can even be smart about it and only redisplay it if it has changed), do a search for AJAX and see this page on Mike Williams' tutorial: The Basics - Part 11 The AJAX Philosophy http://econym.org.uk/gmap/basic11.htm 2. add a timestamp to your queries so the xml doesn't get cached. -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
