On Jul 5, 9:31 pm, thebrianschott <[email protected]> wrote:
>
> At the following link I found an undocumented option regarding
> "onCloseClick:function", which looks like what I need. If so, then is
> something like the following what I want?

No, because you have defined two functions both called "closeClick".
What you want is
marker.openInfoWindowHtml(iwform,"",{onCloseClick:closeClick});

-- that is, a reference to the function defined elsewhere, not a
function definition in-situ. If you want to define a function in-situ,
make it anonymous:
marker.openInfoWindowHtml(iwform,"",{onCloseClick:function ()
  { print "closedWindow" }
  });

Not sure what "print" is supposed to do, though. Did you mean alert
("closedWindow")?

Andrew
--~--~---------~--~----~------------~-------~--~----~
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