Hello,
I tried to add a scriptblock in the contentHtml of my popups like:
this.Popup.ContentHtml = "<script type='text/javascript'>getToolTipContent('[#MARKERNAME#]')</script>"</font></font></font>
and in the page which contains the map:
function getToolTipContent(nom)
{
document.getElementById(nom).innerHTML = nom;//for example
}
But it does'nt work. Have you some ideas to help me please?
Thank you,
André-François
Ethan
2
Hi Andre Francois:
I think this test code should work for you:
Server side:
CloudPopup p = new CloudPopup("", Map1.CurrentExtent.GetCenterPoint());
p.ContentHtml = "<input type='button' onclick=javascript:getToolTipContent('pointName');></input>";
Map1.Popups.Add(p);
Client side:
<script language =javascript>
function getToolTipContent(nom) {
alert(nom);
//document.getElementById(nom).innerHTML = nom; //for example
}
</script>
Ethan
3
Hi Andre Francois:
I think this test code should work for you:
Server side:
CloudPopup p = new CloudPopup("", Map1.CurrentExtent.GetCenterPoint());
p.ContentHtml = “<input type=‘button’ onclick=javascript:getToolTipContent(‘pointName’);></input>”;
Map1.Popups.Add§;
Client side:
<script language =javascript>
function getToolTipContent(nom) {
alert(nom);
//document.getElementById(nom).innerHTML = nom; //for example
}
</script>