> On a related note, does the API infowindow allow for using javascript
> within it?
>From previous posts,
var html = '<div onclick="deleteMarker(' + marker.myMarkerID +
')">DELETE</div>';
marker.openInfoWindowHtml(html);
The infowindow contains javascript - deleteMarker(whatever) is a call
to a javascript function.
Also from previous posts
function deleteMarker(id) {
var url = 'somePhpScript.php?task=delete&markerId=' + id;
GDownloadUrl(url,function(){
// Do something with the response
})
If want "do something" to become something like "refresh the map",
make it so.
--
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.