Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

jquery loader?

Hi, I have a php application where I use a form to upload a file to the server. The file upload can take anywhere between 20 to 40 secs. When the file is being uploaded I would like to display an ajax loader on the page to indicate the file transfer is taking place. Can someone let me know how this can be done? Thank you.

A
0
aej1973
Asked:
aej1973
1 Solution
 
leakim971PluritechnicianCommented:
Check this and its note about APC :
http://www.johnboy.com/php-upload-progress-bar/
0
 
Ramkisan JagtapLead DeveloperCommented:
0
 
mcnuteCommented:
I think what the author wants is just simple loader gif in place of the form.

$('#form_id').submit(function(e){
    
$(this).remove();
$('body').append('<div id="loader">File is being uploaded...</div>');

});

Open in new window

0
 
aej1973Author Commented:
mcnute, you are right! Thank you for all the other answers too, they were good.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now