If you just need to support firefox, then you can just use it, but if
you want to support other browsers (esp, mobile browsers), right now
you'll need to use gears. I use this bit of code:
if (navigator.geolocation)
var geo = navigator.geolocation;
else
if (window.google && google.gears)
var geo = google.gears.factory.create('beta.geolocation');
else
location.href = "http://gears.google.com/?
action=install&message=<message>" + "&return=<url>";
That works in firefox (without gears) and in my g1 phone's browser
(which has gears), you can use the geo object the same (at least for
my purposes, not sure if they both implement the whole w3c api (http://
dev.w3.org/geo/api/).
On Jul 24, 12:14 pm, AJ <[email protected]> wrote:
> Is Google Gears really needed if I have Firefox 3.5.x, since Firefox
> 3.5.x has built in geolocation, to use the Latitude iGoogle gadget?
>
> FYI, I don't use any offline features, like offline Gmail or anything
> like that.