It looks like the second level of indirection breaks the Function Closure on your html variable that you think you've set up in your usePointFromPostcode() function.
I think that what you have to do is create an Object that's going to hold your context and make your callback method a method on that object, then it can access the variables that are stored in its "this". By using null as your context-holding object, you lose the context. If you're still stuck, you'll probably get better advice on the AJAX Search API group, because your problem is with the way you're using localSearch.setSearchCompleteCallback(). Alternatively, geocode your postcodes once, offline, and store the coordinates. -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-api?hl=en -~----------~----~----~----~------~----~------~--~---
