google.loader.ClientLocation is not reliable and should not be used. It is no longer supported by the dev team. The good news, though, is that there are a number of other, much more reliable services available. You'll want to look into using one of them.
Jeremy R. Geerdes Generally Cool Guy Des Moines, IA For more information or a project quote: jrgeer...@gmail.com If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On Aug 20, 2012, at 7:04 PM, Mike Maloney wrote: > Hey I tried googling but could not find any information that could help me > fix this on my own. For some reason it seems like that google jsapi is not > loading or something because it appears that the first statement was not > being executed since it was redirecting me even though I am in the US. I > rarely mess with javascript but if I am correct the 'else' statement will > only work if the first two statements are not true? > > Thanks > > > <script src="http://www.google.com/jsapi" type="text/javascript"></script> > > <script type="text/javascript"> > if (google.loader.ClientLocation && > google.loader.ClientLocation.address.country_code == "US") { > window.location = "us site url"; > } > > else if (google.loader.ClientLocation && > google.loader.ClientLocation.address.country_code == "TH") { > window.location = "thailand site url"; > } > > else { > window.location = "url"; > } > > </script> > > > -- > 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-search-api@googlegroups.com > To unsubscribe from this group, send email to > google-ajax-search-api+unsubscr...@googlegroups.com > To view this message on the web, visit > https://groups.google.com/d/msg/google-ajax-search-api/-/FnOiHRhiMmEJ > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en -- 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-search-api@googlegroups.com To unsubscribe from this group, send email to google-ajax-search-api+unsubscr...@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