> > I don't know... it works for me on FF, IE8 and Chrome, all on windows. > This is a good news. Actually the problem is on IE9 and on Mac machines.. i found an article on Gears forum that said that this service it's not yet fully compatible with Mac. but i'll search above that next day.
How do your browser tests work on the original example you had: > http://www.urbanclaim.com/new.php ? > they work fine..also on Mac, tomorrow morning i try again and let you know. you could delete the tryGoogleGears and tryGoogleLoader functions (and the > code that calls > them, at the end of the W3 attempt) and not load gears_init.js at all > and see if that improves things. > i delete these function and i moved the first part of the script befoure the W3C fuction and now there is no more repetition on source code. but i can't cancel gears on W3C function; i try but it gives me a grey map instead. how can i do that? (see same page for live map modified) echo "\n\t // try W3C standard approach"; > echo "\n\t var geoTimeout = 10000;"; > echo "\n\t var timeOuthandler = setTimeout(\"TryGoogleGears()\", > geoTimeout);"; > echo "\n\t if(navigator.geolocation) {"; > echo "\n\t > navigator.geolocation.getCurrentPosition(function(position) {"; > echo "\n\t clearTimeout(timeOuthandler);"; > echo "\n\t var latLong = new > google.maps.LatLng(position.coords.latitude, position.coords.longitude);"; > echo "\n\t document.getElementById(\"location\").innerHTML = > \"Urbanclaim has found your location!\";"; > echo "\n\t showMap(latLong, 13);"; > echo "\n\t coordinate = latLong;"; > echo "\n\t }, function() {"; > echo "\n\t // something went wrong, try Google Gears"; > echo "\n\t clearTimeout(timeOuthandler);"; > echo "\n\t TryGoogleGears();"; > echo "\n\t }, {timeout:geoTimeout});"; > echo "\n\t }"; > echo "\n\t else"; > echo "\n\t TryGoogleGears();"; > > Otherwise it's very hard to tell without seeing the errors what's > going wrong. You really need to learn to use the debugger in the > browsers where you are experiencing problems, or at least insert > alerts in your code so you can tell what is happening. > i'm studing about firebug ;) ---but for the moment--- where i have to put these alerts? on the errors that you tell me on the prev message? thanks, have a nice day, Luca -- 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.
