loading icon

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dotphp
Forum Commoner
Posts: 25
Joined: Sat Nov 10, 2007 8:03 am

loading icon

Post 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
mikeashfield
Forum Contributor
Posts: 159
Joined: Sat Oct 22, 2011 10:50 am

Re: loading icon

Post by mikeashfield »

You'll probably be best using JavaScript for this, something along the lines of:
$('img.example').load(function() {
$('#spinner').fadeOut();
});
Post Reply