Hi there,

if i say something like   ... .save(...); this.close()...


i get an error like: this.close is not a function.

So it seems, that this is not helping too.

Isn't there a way, to check if a  infowindow is open on the map and
than call closeWindow() ?


Cheerio,
ramo

On 2 Aug., 14:27, novitonics <[email protected]> wrote:
> Hmm
>
> quoting API:>>GInfoWindow has no constructor. It is created by the map and 
> accessed by its method GMap2.getInfoWindow().>>
>
> from:http://code.google.com/intl/de-DE/apis/maps/documentation/javascript/...
>
> How about a reference to itself using something like:
>         this.close()
>
> I'm running out of answers :P
>
> cheers
>
> On Aug 2, 1:14 pm, "[email protected]"
>
> <[email protected]> wrote:
> > Hi again,
>
> > sorry, you was a bit faster in the last message :).
>
> > if i wirte down the line with the new operator, i get an error in
> > firebug and now infowindow is poped up.
>
> > The error is for this line
> > var mess = new map.openInfoWindowHtml(point, html, {zoomLevel: 6} );
>
> > is:
>
> > this.rc is not a function
> > [Break on this error] l.S=function(a,b,c,d){this.rc().S(a,b,c,d)};
>
> > Without the new operator, the infowindow pops up.
>
> > Greeetings, Ramo
>
> > On 2 Aug., 13:09, "[email protected]"
>
> > <[email protected]> wrote:
> > > Hi,
>
> > > so this option:
>
> > > window.parent.close()
>
> > > doesn't work.
>
> > > i'm creating my infowindow in a  eventlistener that looks like this:
>
> > > putPolygonListener = GEvent.addListener(polygs[j], "click",
> > > function(point){
> > >                                                 var html='....<img 
> > > src="clipart/approve.png" alt="Übernehmen"
> > > title="Übernehmen" onclick="save(polygs[i].p_id );" />...';
> > >                                                   mess = 
> > > map.openInfoWindowHtml(point, html, {zoomLevel:
> > > 6} );   });
>
> > > in the save() function i do a
>
> > > window.parent.close()
>
> > > but that doesn't seem to help. Even the variable "mess" is undefined,
> > > i guess that's because GInfoWindow has no constructor, or am i wrong
> > > here?
>
> > > Greetings, Ramo
>
> > > On 2 Aug., 12:27, novitonics <[email protected]> wrote:
>
> > > > Try the following clause after having done the save operations:
>
> > > > NameOfWindow.close()
>
> > > > window.parent.close()  // will close the parent invoking window might
> > > > also be useful
>
> > > > Cheers!
>
> > > > On Aug 2, 11:16 am, "[email protected]"
>
> > > > <[email protected]> wrote:
> > > > > Hello,
>
> > > > > i'm trying to close an infowindow, that displays two images. One image
> > > > > has a onclick handler like onlick="save(this)" .... if this image is
> > > > > clicked, the save funcion should be processed, and after this, the
> > > > > window, on which this image was clicked should be closed. I don't have
> > > > > an idea how to solve this problem. Are there any hints? I searched the
> > > > > forum, but didn't found a solution. May be i searched with the wrong
> > > > > keywords.
>
> > > > > Beste regards,
> > > > > Ramo- 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