Merhaba bir görüntü sunucusuna yüklenir zaman bu geri çağırma işlevi var ve ben daha sonra bir PHP komut dosyası tarafından oluşturulan bir küçük resim olarak bu görseli göstermek istiyorum
'onComplete' : function(event, ID, fileObj, name,response, data) {
var newfile = '/admin/includes/image.php?filename='+name+'&maxw=150';
$('#uploaded_images').append('<li class="'+ID+'"><img src="/site_images/ajax-loader.gif"" alt="" /></li>').fadeIn('fast');
$.get(newfile, function(){
$('.'+ID).fadeOut().empty();
$("."+ID).append('<img src="'+newfile+'" alt="" />').fadeIn();
});
the ".get" jquery function is supposed to show the img tag only after the image is loaded (and it does) the problem is that when I print the img tag the image is loaded again. This practically only fadesIn the "container" of the image. The image will continue to appear only when loaded and without any effect. Is there a way I can arrange the script to use the image cached with "get" or actually print everything only when the image is loaded directly?
Teşekkür ederim