XModPro

href onclick

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

1 Answer

Loading answers...