Thanks, but I can't get it working. I make in that place a cookie,
that does display when I use document.write directly in the function,
but again, it doesn't work outside - when i want to read a cookie with
php. Is it possible or I do (again) something wrong?

code in the HERE section:
var sou = results[0].geometry.location;
setCookie('souradnice', sou); // my function (it works)

I call it:
codeAddress(adresa);

and then want to display it:
document.write(readCookie('souradnice');

and it says "null"

I know it's not a topic directly tied to Google Maps, but I'd really
like to be able to get it working.

On 24 srp, 20:20, Rossko <[email protected]> wrote:
> > Thanks for a quick reply. But i still don't understand it. I need to
> > get the location to php script (through cookies). How can i do this?
>
>  function codeAddress(adresa) {
>      var geocoder = new google.maps.Geocoder();
>      geocoder.geocode( { 'address': adresa}, function(results, status)
>  {
>        if (status == google.maps.GeocoderStatus.OK) {
>
>        Do whatever it is you need to do with the results HERE.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-maps-js-api-v3?hl=en.

Reply via email to