Thanks very much for this. It was a big help. sk
On Jan 21, 3:38 pm, Rossko <[email protected]> wrote: > > TheAjax.Request("/pivrain3/...) url returns a string /images/ > > rain_sensors/0.03.png (in single quotes) > > Does it? When does it do that? As it's called "Ajax" and it has some > option "asynchronous:true" I imagined it would return data some time > after your initial assignment. We can't tell because we can't see > your code; I had to guess at what newAjax.Request() might be. If it > is the one from the Prototype library (are you using that, I can't > tell?) then newAjax.Request() returns a requester object, not a > string. The request might well get a string response later (I can't > tell) but nothing is going to happen with that, it's too late. > > The usual way to actually use data returned from an asynchronous > function is to use it within the callback. > Examplehttp://www.tutorialspoint.com/prototype/prototype_ajax_request.htm > > See also "READ TH|IS > FIRST"http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e > please give a link to your map showing the problem, to save > everybody's time -- 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.
