In addition to moving the block, I also redeclared localSearch as a
local variable with new object every time:

var localSearch = new GlocalSearch();
usePostcode(query, function(point) {


On May 12, 10:13 pm, eversonl <[email protected]> wrote:
> Hi William!
> thanks for takeing a look, I just tried that and get the same results
> (still not working for me)
> seehttp://www.extreme-media.co.uk/help2.html(has the block moved)
>
> Thanks
> Lee
>
> On May 12, 11:38 am, William <[email protected]> wrote:
>
>
>
>
>
> > On May 11, 8:49 pm, eversonl <[email protected]> wrote:> If I use the normal 
> > google map api for geocoding the script works fine
> > > and populates the infowindows with the correct details, but when using
> > > the Ajax API it doesn't
> > > e.g if you uncomment line 116 and comment out 117 you'll see what is
> > > supposed to happen (postcode should show in the relevant info window.
>
> > if you move the usePostcode function within this block as a local
> > function, and change localSearch to be a local variable, then it seems
> > to work!
>
> > var query = postcode.toUpperCase() + ', UK'
>
> > function usePostcode(query, callbackFunction) {
> >   localSearch.setSearchCompleteCallback(null,
> >     function()
> > ....
> > ....});
> >   localSearch.execute(query);
>
> > }
>
> > var localSearch = new GlocalSearch();
> > usePostcode(query, function(point) {
> > ....
> > ....
>
> > --
> > 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 
> > athttp://groups.google.com/group/google-maps-api?hl=en.
>
> --
> 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 
> athttp://groups.google.com/group/google-maps-api?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
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.

Reply via email to