> So you tell me that the data can not store it somewhere and then reuse > it in another part of the code?
You can do that. The difficult part is getting the timing right. The way your code is written now:- a) Request directions b) Use the stored results (oops, they are not available yet) c) After some period of time, the results return, which triggers the callback code, and the results are stored. If you want to do something with the results, do it in the callback code. In your case, update your listbox in the callback. -- 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.
