google.loader.ClientLocation

362 views
Skip to first unread message

Vivek

unread,
Nov 22, 2011, 4:42:57 AM11/22/11
to Google AJAX APIs
Hello,

I implement this code in my website but value of
google.loader.ClientLocation is return NULL so, i can't find
location.Please help me how i got all information of visitors of my
website. Using Google AJX API

<script src="http://www.google.com/jsapi" language="javascript"></
script>
<script language="javascript">
if (google.loader.ClientLocation != null) {
alert(google.loader.ClientLocation.address.city);
} else {
alert("Not found");
}
</script>

Regards
vivek

Jeremy Geerdes

unread,
Nov 22, 2011, 11:26:09 AM11/22/11
to google-ajax...@googlegroups.com
Unfortunately, ClientLocation has never been reliable. I would suggest checking out the HTML5 geolocation API, which is built into every modern browser except (last I looked) that built into Windows Phone 7. But if you're one of the two Windows Phone 7 users in the wild, access to a geolocation API through your phone probably won't help you be less than lost anyway :D

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
jrge...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

> --
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to
> google-ajax...@googlegroups.com
> To unsubscribe from this group, send email to
> google-ajax-searc...@googlegroups.com
> To view this message on the web, visit
> http://groups.google.com/group/google-ajax-search-api?hl=en_US
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply all
Reply to author
Forward
0 new messages