On a Xmodpro form I have a onchange event showing a hidden image.I have tried for hours to resolve this.
when I click on the image I want to show several hidden elements. I am testing just using an image.
Two issues
1. the image does not show yet I use the root"~/image/add.gif"...how do I fix this?
2. The href onclick calls a javascript function to show another href link but it does not show????yet the dropdown onchnage is functioning....
here is the cutdown code.showme(discclick) is the function working for onchnage on the dropdown..
function showb(disco) does not show the diffen image in div id"disco"???
<AddForm ClientName="QCEnter1" >
<ScriptBlock BlockType="HeadScript" RegisterOnce="True" ScriptId="KBXM_Style_FrmQcif">
<script type="text/javascript">
function showme(discclick) {
var e = document.getElementById(discclick);
e.style.display = 'block';
}
function showb(disco) {
var i = document.getElementById(disco);
i.style.display = 'block';
}
function showd(disco1) {
var k = document.getElementById(disco1);
k.style.display = 'block';
}
</script>
</ScriptBlock>
<p><div id="discclick" style="display:none" ><a href="#" OnClick="showb(disco)"> <Img src="~/images/add.gif" /></a> </div> </p>
<p><div id="disco" style="display:none" ><a href="#" OnClick="showd(disco1)"> <Img src="~/images/add.gif" /></a> </div> </p>
<p><div id="disco1" style="display:none" > hello</div></p>
Can anyone help please.