I am sorry, but I do not understand what to do. How I can do that by using callback function or callback routine? Thanks.
On 19 Lug, 16:10, "[email protected]" <[email protected]> wrote: > On Jul 19, 9:50 am, thebit <[email protected]> wrote: > > > I had already seen the example link about reverse-geocoding. In fact I > > based my code on this link. > > So, you want say to me I cannot to implement this function in my > > application because it will not works forever? > > You can not return the results of an asynchronous query from a > function that originates it. > > > Is there a solution? > > Do what you need to do in the callback routine. > > -- Larry > > > > > On 19 Lug, 13:25, "[email protected]" <[email protected]> wrote: > > > > On Jul 19, 7:08 am, thebit <[email protected]> wrote: > > > > > I uploaded a simple test page > > > > here:http://thebit.altervista.org/maps/testAddMarker23_web.php > > > > If you try: the result is showed in alert window but not in > > > > "risultato" div. > > > > 1. Don't use asynchronous services in a tight loop, it might work for > > > a few, but will eventually run into quota/rate limits. > > > 2. The reason the result appears in the alert is that the alert is in > > > the callback routine, sequence of events: > > > a. call function > > > b. function sends request to server > > > c. function ends (no return value specified) > > > d. data comes back from server > > > e. callback function runs, displaying the alert > > > > -- Larry -- 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.
