Page 1 of 1

loading icon

Posted: Sat Oct 29, 2011 6:08 am
by dotphp
Hi

I have website where users can upload pictures on server. Sometimes it take 4-5 seconds until the upload it's finish.
What can I do that when I click on upload button an icon appear in middle of the screen and disappear then the pictures was finish uploading.

Thanks

Re: loading icon

Posted: Sat Oct 29, 2011 6:35 am
by mikeashfield
You'll probably be best using JavaScript for this, something along the lines of:
$('img.example').load(function() {
$('#spinner').fadeOut();
});