Ok, so my happiness was way too short.
The above code works for 1 marker and 1 infowindow.
But if you have 50 markers and you start to click around, then the
clicked! alert is displayed as many time as you've clicked on a
marker...
is there any way to reset the event before I set the content in my
closure function???
Doing all this with inline js would be really easy - I could just make
a <a href="#" onlcick="javascript:blabla()">blabla</a>
and it would work as expected, but I think that doing this with
unobtrusive javascript is somehow more elegant...