I am trying to load images through ajax call in jquery using This here. its not working at all and I am not sure what I am doing wrong, I am using firebug and do not see any request. Any help would be appreciated.
var img = $('<img />').attr('src', thumbnailUrl).load(function () {
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
alert('broken image!');
} else {
$("#imageHolder").append(img);
}
});