There are no platform-specific changes necessary. The client location function is based on IP address. See if you can't switch IP addresses between your Mac and the Win or Linux box. You may also need to clear your browser cache (the loader can not be cached for up to 60 minutes in the browser).
Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com [email protected] If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On Apr 20, 2010, at 3:57 AM, abhishek singh wrote: > hi > i'm having some problem with google.loader.ClientLocation. > I'm not able to get my Location information(city,region,country) in > MAC os using following script. Although in windows and Linux i'm able > to get my city,state and country. > > <html> > > <script type="text/javascript" src="http://www.google.com/jsapi? > key=ABQIAAAAZa7lRXP3ENEBedfvFn3eERTi6GN1FOGG0elxb12Akk_ye4II3RRyzWcVKZmcf7F2ohzjAlh9r_Ji6A"></ > script> > > <script type="text/javascript"> > > alert("Hi"); > > var loc; > > google.load("maps", "2", {callback: test}); > > if (google.loader.ClientLocation){ > > loc = google.loader.ClientLocation.address.city + ',' + > google.loader.ClientLocation.address.region + ',' + > google.loader.ClientLocation.address.country > > alert(loc); > > } > > alert("THANKS FOR TESTING") > > function test() { > > alert("INTEST"); > > } > > </script> > > </html> > > Everytime google.loader.ClientLocation is null on mac. Is there any OS > specific changes needs to be done while using > google.loader.ClientLocation on mac machine. > > thanks, > Abhishek Singh > > -- > You received this message because you are subscribed to the Google Groups > "Google AJAX APIs" 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. > -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" 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.
