I'm trying to create my own version of the Google Places Library
Autocomplete (similar to the Google Places Autocomplete library but
different enough for me to need to create my own).
I've setup an API key and have created a test page to start with.
I've tried to use jquery with getJson to load the request url but I keep
getting security violation / no results / AJAX status 0 but if I download
the data and put it in a local file on the webserver its fine. The web seems
to imply that I need to use a json callback to get around the security
issues of calling json from another webserver, ie Google Maps', but I can't
figure out what this looks like.....after numerous attempts. I've seen the
webpage about eval('(' + response + ')') but not sure how to apply this
either.
Can someone offer some straight forward javascript that will show how to
load the json response from the Google Places API (
http://code.google.com/apis/maps/documentation/places/autocomplete.html),
just on pageload will do, that I could then apply to my autocomplete?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/NmM1hvxCum8J.
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-maps-js-api-v3?hl=en.