Wyo,
Try something like this: var $img = $('<img src="'+files[pos]+'" id="file'+pos+'"class="picture">') .appendTo('#pictures') .bind('load', function() { alert('loaded') }); But be aware that if the image is already in the browser cache the load event will not fire in IE. You can use the "complete" property to test if the image is loaded: if ($img[0].complete) { // image is loaded } Mike On 4/28/07, wyo <[EMAIL PROTECTED]> wrote:
I load images with $('#pictures').html('<img src="'+files[pos]+'" id="file'+pos+'" class="picture">'); and want to save the loaded width,height afterwards. It seems this is only possible after the image is fully loaded. Is there an event which I could bind a function? O. Wyss