2008/12/30 jaforom <[email protected]>: > > Thanks by your response. > > About you comments: > > - The server is ok: its response is fast
:) > - How can the js forget my user? No idea, it was a guess because I have no idea how your code works > > The KML files intended to load are local files. First to load them, > the user selects a file (that is uploaded to the server). Then, the > server rename the uploaded file and move it from temp directory to a > public directory. Then, the server returns a js code that makes a call > to the loadKMLUser() function. Ah ok, so we now have a bit more information on how your system works... My next guess (as you still haven't read the posting guidelines - or choose to ignore them?) is that you are pressing refresh to try the latest javascript code - but the browser isn't sending the client side file in the request - so your server returns a url that is actully a blank file. Probably still wildly off, but my best offering. > > PHP is in the server side. > > > Regards. > > On 29 dic, 13:43, "Barry Hunter" <[email protected]> wrote: >> Maybe your server is slow responding, maybe the javascript has forgot >> your user, and so is in fact requesting an invalid KML file (thats a >> guess) >> >> please read the Posting Guidelines. (they are there for a reason) >> >> 2008/12/29 jaforom <[email protected]>: >> >> >> >> >> >> >> >> > I don't know the reason, but when I load different KML files, their >> > load is erratic: sometimes are loaded correctly (they are visible) and >> > other times the API say me the files are loaded but they are not >> > visible. Any idea? The code is: >> >> > function loadKMLUser(url) { >> > try {map.removeOverlay(ns.kmlUser);}catch(e){} >> > setMapCursor('wait'); >> > ns.kmlUser = loadKML(url, >> > function(){setMapCursor('default');centerKML >> > (ns.kmlUser, map);},function(){setMapCursor('default');}); >> > if (ns.kmlUser) map.addOverlay(ns.kmlUser); >> > } >> >> > function loadKML(url, callback_success, callback_error) { >> > var geoxml = new GGeoXml(url, function(){ >> > if >> > (geoxml.loadedCorrectly()) { >> > >> > if (callback_success) {callback_success(geoxml);} >> > } >> > else { >> > >> > if (callback_error) {callback_error();} >> > }}); >> > return geoxml; >> > } >> >> -- >> Barry >> >> -www.nearby.org.uk-www.geograph.org.uk-- Ocultar texto de la cita - >> >> - Mostrar texto de la cita - > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
