Hi
I have an issue with getElementsById whereit is throwing an error .Do we have any kind of alternate function to solve this issue.I need to preview the images which I have stored in a sharepoint library.
Please Help !
Jag
Code:
<span class="srch-Icon">
<img alt="n1" id="{concat('IMG_',$id)}" src="http://a2ms04866:3000/Pdfimage/_t/pd...Fsmall_gif.jpg" onmouseover ="javascript:cool1('{concat('IMG_',$id)}','{title}')"/>
<script language="javascript">
function cool()
{
alert("hii");
}
function cool1(ImgName, Title)
{
alert(ImgName);
alert(Title);
var i=Title.indexOf(".");
var xcv=Title.substring(0,i);
var imagepath='http://a2ms04866:3000/Pdfimage/'+xcv+'.jpg';
alert(imagepath);
document.getElementsById(ImgName).src=imagepath;
//alert(imagepath);
}
</script>