> 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?
This doesn't sound like a good idea. Using document.write after the page has finished rendering (which is likely when you are geocoding - your request gets sent off to Google and the response won't come back until some time later) usually crashes the page. You are quite right ; it won't work outside the callback function. Ever. That is what the tutorial about "asynchronous" is trying to tell you ; have another read of it, its not easy to grasp at first. It's not clear when you were expecting php to 'see' the cookie you set from javascript ; that won't happen immediately either. This might help http://bytes.com/topic/php/answers/490885-passing-javascript-cookies-into-php-script -- 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.
