Hi, I am not much familiar with AJAX and i need to show a progress bar while uploading a while which would show time remaining and percentage completed. Please provide me best solution. Thanks Debuggers
Hi, Here are some ressources you should look at. This is a tutorial using the xAjax project. It explains pretty much the same thing as you want to do: http://wiki.xajaxproject.org/Tutorials:Creating_a_Loading_Message You surely will need a visual for the progress bar. You can code and design one for yourself, but the following link might interest you as there are ready-to-use progress bars and other stuffs : http://ajaxload.info/
That would work, but to show the percentage of file data uploaded, and not just an "uploading" message would be a bit more complex - it's unfortunately something that's historically been rather tricky to achieve in PHP (something like "35% of 150kb uploaded...") With PHP 5.2 and later, there's a relatively simple method of achieving this. I haven't tried it myself yet, but an outline of it is available at http://www.ibm.com/developerworks/opensource/library/os-php-v525/ Other alternatives, with earlier PHP versions, would include patching PHP, and using Perl to check up constantly on the upload progress of the file, and report back with a percentage (something PHP can't do) more info on that here: http://tomas.epineer.se/archives/3
Thanks everyone for the help, I will try those code and if it helps me out i will message you again and you can post the same solution for others.