OK, I discovered the problem was that I was including the Google AJAX API with http instead of https, and my browser settings were not permitting the loading of non-secure content on the page. Changing the URL to https fixed the problem.
Thanks for your help! Jim On Oct 18, 8:25 pm, Jeremy Geerdes <[EMAIL PROTECTED]> wrote: > FYI: I just called the jsapi (API loader, which sets the > ClientLocation) via both http and https, and > google.loader.ClientLocation was set identically in both. If you > could provide a link, maybe we can track down an error or something. > > Jeremy R. Geerdes > Effective website design & development > Des Moines, IA > > For more information or a project quote:http://jgeerdes.home.mchsi.com > [EMAIL PROTECTED] > > Unless otherwise noted, any price quotes contained within this > communication are given in US dollars. > > If you're in the Des Moines, IA, area, check out Debra Heights > Wesleyan Church! > > On Oct 18, 2008, at 8:59 PM, Jim P wrote: > > > > > I'm having trouble determining the geographic location of clients > > visiting my secure website. I've included the following script in the > > page: > > > var state = -1; > > if (google.loader.ClientLocation) { > > state = google.loader.ClientLocation.address.region.toUpperCase(); > > } > > > and always get -1 when using the secure page. When I switch over to a > > non-secure page, the code works fine and is able to correctly > > determine my state. > > > Is google.loader.ClientLocation currently supported for pages using > > SSL? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX API" 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-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
