Solved

jquery loader?

Posted on 2013-01-20
4
198 Views
Last Modified: 2013-01-25
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
Comment
Question by:aej1973
4 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 38799246
Check this and its note about APC :
http://www.johnboy.com/php-upload-progress-bar/
0
 
LVL 12

Expert Comment

by:Ramkisan Jagtap
ID: 38799980
0
 
LVL 11

Accepted Solution

by:
mcnute earned 300 total points
ID: 38800964
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
 

Author Comment

by:aej1973
ID: 38801066
mcnute, you are right! Thank you for all the other answers too, they were good.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question