wyo schrieb:
On 28 Apr., 23:12, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
var $img = $('<img src="'+files[pos]+'" id="file'+pos+'"class="picture">')
    .appendTo('#pictures')
    .bind('load', function() { alert('loaded') });

Thanks, this works. Why do you use "appendTo" instead of "html"? I
must say I don't understand the difference.
$("#pictures").html('<img src="'+files[pos]+'" 
id="file'+pos+'"class="picture">').find("img").bind(...);

Using the first approach saves you the call to find("img").

--
Jörn Zaefferer

http://bassistance.de

Reply via email to