Yes I know about scope, but it was more what you ment with reference?
I would like to use a link like this with a call to a function

<a href='#' onClick='closewindow();'>Close</a>

And then a function like this

function closewindow() {
infowindow.close;
}

But this doesn't work. And I don't know how to do?


On 19 Sep, 00:01, 3D-kreativ <[email protected]> wrote:
> It's on my computer and not on the Internet yet!
>
> On 18 Sep, 23:51, "[email protected]" <[email protected]> wrote:
>
> > On Sep 18, 2:46 pm, 3D-kreativ <[email protected]> wrote:
>
> > > Could you please explain this : If you have a reference to it in the
> > > scope in which that function runs?? I don't understand how to do?
>
> > This might help (from Mike Williams' (v2) tutorial, but the concept is
> > the same):
> > Javascript Concepts - Part 1 Scopehttp://econym.org.uk/gmap/scope.htm
>
> > > And I have tested the example below, but it's not working.
>
> > Then where is your map where you have tested it and it doesn't work?
>
> >   -- Larry
>
> > > On 12 Sep, 23:45, "[email protected]" <[email protected]> wrote:
>
> > > > On Sep 12, 2:37 pm, 3D-kreativ <[email protected]> wrote:
>
> > > > > Hi,
>
> > > > > Is it possible to close an infowindow that is "open" on the map from
> > > > > an ordinary function outside the google maps script?
>
> > > > Yes.  If you have a reference to it in the scope in which that
> > > > function runs (I usually make a global "infowindow" variable so I can
> > > > replicate the v2 infowindow behavior).
>
> > > >   -- Larry
>
> > > > > I have tested
> > > > > this, but nothing happens:
>
> > > > > function closeWindow() {
>
> > > > > infowindow.close();
>
> > > > > }
>
> > > > > Preciate some help. Thanks!- Hide quoted text -
>
> > > - Show quoted text -

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

Reply via email to