Possible Duplicate:
javascript executing function after full image load
Im using JQuery to programmatically change the html img
:
$('#myimage').attr('src', 'url-of-image');
That may take some time depending on the url-of-image
.
How can we add an event that will trigger if the new image was loaded successfully?