This time my question is the following: I want to upload images using a file input and instead of refreshing the whole I site, I want a simple AJAX loader to roll and after
You can easily use ajaxupload to send images to the server side and then get the image on the success return of the function.
$("#form1").ajaxForm({
target: '#preview',
beforeSubmit: function(){
$('.upload').after('
');
},
success: function (){
$('.loading-bar').hide('slow');
setCrop();
},
url: "/account/processpicture"
}).submit();