Hi Wilyin -

See: 
http://code.google.com/apis/maps/documentation/mapplets/infowindowallowed.html

No Javascript is allowed in info windows (for security reasons).

I'd suggest putting buttons in the sidebar instead.

- pamela

On Mon, Oct 6, 2008 at 12:37 PM, vvilyin <[EMAIL PROTECTED]> wrote:
>
> I want to use button in InfoWindow in Mapplet.
> That is for saving additional info from InfoWindows.
>
> But it does not work.
> ///////////////////////////////////////
> var map = new GMap2();
> var marker = new GMarker(new GLatLng(56,37));
> map.addOverlay(marker);
> var mess = "It works";
> marker.openInfoWindow("<input type='button' value='Test'
> onclick='alert(mess)'>");
> ///////////////////////////////////////
>
> Alert does not work after pressing the button. Why?
>
>
> >
>

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