I studied quite a few in this link:
http://code.google.com/apis/gears/
api_geolocation.html#positionoptions
In this link they give the following javascript code...
<script type="text/javascript" src="gears_init.js"></script>
<script type="text/javascript">
var geo = google.gears.factory.create('beta.geolocation');
function updatePosition(position) {
alert('Current lat/lon is: ' + position.latitude + ',' +
position.longitude);
}
function handleError(positionError) {
alert('Attempt to get location failed: ' + positionError.message);
}
geo.getCurrentPosition(updatePosition, handleError);
</script>
i also used the attached gears_init,js. But when i run this code
within the body of html they give me the following error messege...
"Attempt to get location failed. Network provider at
http//:
www.google.com/loc/json did not provide a good position fix"
On Dec 9, 12:42 am, "Md. Masudur Rahman" <
masudcs...@gmail.com> wrote:
> I wanted to make this thing worked in my browser what is called
> Geolocationhttp://
www.mozilla.com/en-US/firefox/geolocation/
> Mozilla also tries to support using google service. We need to know
> whether google can detect our browser location.
> these links contain more infohttp://
code.google.com/apis/maps/faq.html#geocoder_countrieshttp://www.geobase.info/