Hi,

I'm trying to use the ClientLocation variable of the AJAX Property API. see
:

- http://code.google.com/apis/ajax/documentation/#ClientLocation
- http://blogoscoped.com/files/where.html
- http://code.google.com/p/gwt-google-apis/issues/detail?id=163

Here is the code I tried :

public class ClientLocalization {
>     public static native double getClientLatitude() /*-{
>           return ($wnd.ClientLocation == null ? 0 :
> Number($wnd.ClientLocation.latitude));
>     }-*/;
>
>     public static native double getClientLongitude() /*-{
>           return ($wnd.ClientLocation == null ? 0 :
> Number($wnd.ClientLocation.longitude));
>     }-*/;
> }
>

But still, I always get 0. Can someone help me with this ?

Regards,
Mehdi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to