hi,
can someone tell me how to change window info content. Thanks
I tried to put html tags inside windowinfo. an change it using
getelementbyid but it wont work.
heres my code:
var marker = new GMarker(new GLatLng(latitude,longitude));
GEvent.addListener(marker, "click", function() {
var html = "<div id='windowinfo'><table>" +
"<tr><td>Shop:</td> <td><input type='text' id='shop'
name='shop'/> </td> </tr>" +
"<tr><td valign='top'>Address:</td> <td><textarea rows='5'
name='address' id='address'></textarea></td> </tr>" +
"<tr><td></td><td><input type='button' value='Save' onclick='saveLoc
()'/></td></tr>" +
"</table></div>" +
"<input type='hidden' value='"+point.lng()+"' name='longitude'
id='longitude' />" +
"<input type='hidden' value='"+point.lat()+"' name='latitude'
id='latitude' />" +
"<input type='hidden' value='<?=site_id?>' name='site_id'
id='site_id' />";
marker.openInfoWindow(html);
});
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---