Hi,

The documentation for geolocation API can be found here -

http://code.google.com/apis/gears/api_geolocation.html

There is a demo that does basically what you need, you can look at its
source code here to see how location is requested -

http://code.google.com/p/google-ajax-examples/source/browse/trunk/youtubegeowithgears/main.js

Austin

On Tue, Dec 2, 2008 at 6:00 AM, kfury77 <[EMAIL PROTECTED]> wrote:

>
> Hello all. I'd like the javascript code that would use the GeoLocation
> to get which country a website visitor is from and then redirect the
> user to their localised version of the site....
>
> so, for example, if a user from France with google gears goes to my
> website "example.com" then google gears would get the geolocation and
> then auto direct the user to "www.example.fr".
>
> could someone kindly post the necessary code for this?  (sorry, my
> javascript skills are very limited). I think this code will be very
> useful for a lot of users.
>

Reply via email to