The button to hide/show the kml isn`t used to refresh the kml. It is a test to show and hide overlays...
When i want a refresh i push F5. :o) But I doesn`t work. It only works after like one hour. Can i say it has to do with the cache expiration confirguration ( on the server i use? check this url and search the following text http://www.ietf.org/rfc/rfc2616.txt Cache-Control = "Cache-Control" ":" 1#cache-directive cache-directive = cache-request-directive | cache-response-directive cache-request-directive = "no-cache" ; Section 14.9.1 | "no-store" ; Section 14.9.2 | "max-age" "=" delta-seconds ; Section 14.9.3, 14.9.4 | "max-stale" [ "=" delta-seconds ] ; Section 14.9.3 | "min-fresh" "=" delta-seconds ; Section 14.9.3 | "no-transform" ; Section 14.9.5 | "only-if-cached" ; Section 14.9.4 | cache-extension ; Section 14.9.6 cache-response-directive = "public" ; Section 14.9.1 | "private" [ "=" <"> 1#field-name <"> ] ; Section 14.9.1 | "no-cache" [ "=" <"> 1#field-name <"> ]; Section 14.9.1 | "no-store" ; Section 14.9.2 | "no-transform" ; Section 14.9.5 | "must-revalidate" ; Section 14.9.4 | "proxy-revalidate" ; Section 14.9.4 | "max-age" "=" delta-seconds ; Section 14.9.3 | "s-maxage" "=" delta-seconds ; Section 14.9.3 | cache-extension ; Section 14.9.6 cache-extension = token [ "=" ( token | quoted-string ) ] i was wondering that maybe i could use this... for my getDate() function, i will change that for getTime() to have a different value every time i call the kml... On 23 déc, 15:32, "[email protected]" <[email protected]> wrote: > On Dec 23, 12:26 pm, "[email protected]" <[email protected]> > wrote: > > > > > On Dec 23, 12:06 pm, "[email protected]" <[email protected]> > > wrote: > > > > On Dec 23, 11:46 am, Tremblay <[email protected]> wrote: > > > > > I fixed the link...please try again. > > > > What did you "fix"? > > > > >http://jftremblay.net/test.php > > > > 1. I still get an unterminated string error on line 1192 in IE. On > > > this line: > > > elementValue("Bar","Barre de progression - Chargement Termin顢); > > > (it doesn't like the character encoding either...) > > > > 2. The HTML is still invalid. > > > 3. You didn't answer my question about what browser you are testing > > > with. > > > You are using .getDate()http://www.w3schools.com/jsref/jsref_getDate.asp > > > That returns the day of the month (which means it won't change between > > calls on the same day). I used > > .getTime():http://www.w3schools.com/jsref/jsref_gettime.asp > > > Which changes every millisecond... > > Another issue that you have is that you only call GGeoXml once, then > add and remove the resulting overlay. That means that the overlay > will only be fetched once (at least I can't think of any reason why it > should know that the kml has changed), therefor you are adding and > removing the same overlay, so I wouldn't expect it to reflect changes > on your server. > > You need to call GGeoXml again with the new URL (the kml + the > parameter that makes it unique). > > -- Larry > > > > > -- Larry > > > > -- Larry > > > > > On 23 déc, 14:42, "[email protected]" <[email protected]> wrote: > > > > > > On Dec 23, 11:01 am, Tremblay <[email protected]> wrote: > > > > > > > here is a link without the map: > > > > > > What use is a page without the map? > > > > > > >http://jftremblay.net/test.php > > > > > > when i make a change to the kml and i ask a reload of the page it > > > > > > show > > > > > > the old one. > > > > > > I get javascript errors on that page in IE6. Firefox is not happy > > > > > with your character encoding. What browser are you using to test it? > > > > > > Your html is invalid (probably not the problem, but certainly doesn't > > > > > help...):http://validator.w3.org/check?uri=http%3A%2F%2Fjftremblay.net%2Ftest.... > > > > > > -- Larry > > > > > > > On 23 déc, 13:42, "[email protected]" <[email protected]> > > > > > > wrote: > > > > > > > > On Dec 23, 10:31 am, Tremblay <[email protected]> wrote: > > > > > > > > > I have searched all over the Internet for a solution to my > > > > > > > > problem. I > > > > > > > > have a kml that is constantly updated...it's a network > > > > > > > > monitoring, so > > > > > > > > we constantly update the kml. > > > > > > > > Let's say i open the kml 100 times a day. The function who > > > > > > > > loads the > > > > > > > > kml, instead of showing the fresh one, loads from the cache (I > > > > > > > > suppose > > > > > > > > that theory) an old version. > > > > > > > > > Assume the following code: > > > > > > > > ////////////////////////////////////////////////////////////////////////////////// > > > > > > > > // Load kml file in ram > > > > > > > > function load_kml(kml){ > > > > > > > > kml = kml + "?"+(new Date()).getDate(); > > > > > > > > alert(kml); > > > > > > > > geoXml = new GGeoXml(kml); > > > > > > > > } > > > > > > > > load_kml("http://jftremblay.net/google/google.kml");//////////////////////////////////////////////////////////////////////////////////// > > > > > > > > > Barry Hunter said in another post that if I add a querystring > > > > > > > > to my > > > > > > > > request (in this case a getdate function), a fresh kml will be > > > > > > > > loaded > > > > > > > > That works for me. > > > > > > > > > but, in this case, even when I push Ctrl+F5 to make a fresh > > > > > > > > page load, > > > > > > > > it doen`t work. > > > > > > > > > Any idea??? > > > > > > > > Follow the posting guidelines and post a link to your > > > > > > > map?http://groups.google.com/group/google-maps-api/web/suggested-posting-... > > > > > > > > and:http://groups.google.com/group/Google-Maps-API/web/why-including-a-li... > > > > > > > > -- Larry- Hide quoted text - > > > > > > > - Show quoted text -- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text - -- 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.
