Hi,
I'm trying to catching an high resolution image loaded completely. I have a popup window with ModalPopupExtender, and I have an image in the popup panel, that is in an UpdatePanel.
I have a button, that changes the image's ImageUrl on button's OnClick server event. Also I add "onload" client side event to Image's attributes, to try to catch the image was loaded completely.
I tried to simulate this HTML output of async postback with UpdatePanel, and I saw that, an image html element that added in document dynamically, doesn't call onload event when loaded completely, it calls on not loaded %100, for example %70...
I need help immediately...
<html>
<body>
<script>
function func(image){alert(image.id);}
</script>
<div id="c">abc</div>
<input type="button" value="a" onclick="document.getElementById('a').src = 'http://www.ewallpapers.eu/download/14476';"/>
<script>
document.getElementById("c").innerHTML = '<img id="a" onload="func(this);"
src="http://www.satimagingcorp.com/galleryimages/aster-arizona-morenci-mine.jpg">';
</script>
</body>
</html>