Really? Never thought of it that wah. LOL.

So, HTML inside that pop up baloon can call javascript functions on the page
itself?
The HTML text inside my popup baloon is generated on the fly, like when the
user clicks on the marker itself. So can that on-the-fly-generated-HTML of
mine can still call whatever javascript function on the same page?

On Wed, Dec 9, 2009 at 2:56 AM, Mike Williams <[email protected]>wrote:

> The HTML inside an infowindow is effectively put there by loading the
> text into the .innerHTML of a <div>, so <script> tags in that HTML don't
> get implemented.
>
> Actually, that's a benefit to some of us. If that wasn't the case we'd
> have to be much more careful about allowing users to provide infowindow
> content for our pages.
>
> You can write Javascript functions in the body of your page, and call
> them when the infowindow opens.
>
> You can put HTML elements in your infowindows that call existing
> Javascript functions when clicked or mouseovered.
>
> --
> Mike Williams
> http://econym.org.uk/gmap
>
>
> --
>
> 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]<google-maps-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>
>

--

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