Closed GoogleCodeExporter closed 9 years ago
This issue was closed by revision r473.
Original comment by rajido@gmail.com
on 18 Mar 2013 at 11:04
Thanks! I fix it this way ...
image = jQuery('<img id="image_' + chebiId + '"/>')
.load(function() {
self._imageContainer.removeClass("noImage");
self._imageContainer.append(image).css({
'width': self.opt.imageDimension,
'height': self.opt.imageDimension,
'margin': 'auto'
});
self.raiseEvent( Biojs.ChEBICompound.EVT_ON_IMAGE_LOADED, {
id: chebiId,
url: url
});
})
.error(function() {
self._imageContainer.addClass("noImage");
self.raiseEvent( Biojs.ChEBICompound.EVT_ON_REQUEST_ERROR, {
id: chebiId,
url: url,
message: "No image available"
});
})
.attr('src', url);
Original comment by rajido@gmail.com
on 18 Mar 2013 at 11:06
Original issue reported on code.google.com by
rajido@gmail.com
on 18 Mar 2013 at 11:04