I allow the user to insert an object, an image, and then i call a function on that object. What seems randomly to me, sometimes it works and sometimes not, I guess it has t
u can use load function of jquery. Here is an example with your code:
http://jsfiddle.net/UhUb7/
var images = [
"http://upload.wikimedia.org/wikipedia/commons/4/4b/Apple_pie.jpg"
]
$(document).ready(function(){
addImage(images[0]);
});
function addImage(url){
var holder = $('');
var image = $('
');
holder.append(image);
$("#objectbox").append(holder);
image.load(function(){
holder.show('slow');
// alert(image.css("width"));
});
}