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