<script type="text/javascript">
function showpic(objID, objSrc) {
var bigpic = document.getElementById(objID);
bigpic.src = objSrc;
return false;
}
</script>
The function is called, that I checked by replacing the first two lines with an alert.
But the above code is not working. The page, when shown in IE, gives errors, but they don't say anything usefull.
eric_W
Member
36 Points
92 Posts
Re: imagebutton to set imageurl of image via javascript
May 06, 2012 04:11 PM|LINK
I have changed my code to:
And I have added this function to the aspx page:
<script type="text/javascript"> function showpic(objID, objSrc) { var bigpic = document.getElementById(objID); bigpic.src = objSrc; return false; } </script>The function is called, that I checked by replacing the first two lines with an alert.
But the above code is not working. The page, when shown in IE, gives errors, but they don't say anything usefull.
Any solutions?
rg,
Eric