Solved

jquery loader?

Posted on 2013-01-20
4
199 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Wordpress Pagination 1 44
Why is initialize not a function? 8 50
Increase counter and attr inside a while loop 15 34
JSON/JQuery/AJAX Error Identification 2 22
jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

685 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