Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Ajax file upload bar

Name: Anonymous 2009-04-12 4:54

does a simple javascript package exist for people who want to display a progress bar and update it with ajax or something?

doesn't have to be complicated, or update that often. a loop with a delay of 5 seconds calling a cgi script that outputs percentage for a process would be enough

for example a server side upload script could report the percentage uploaded in a cookie or a session variable on the server. if only it could get the complete size of the file in POST, i'm not sure you can?

then it would be a simple matter of calling a script that shows the session value and updating a javascript progress bar

but i don't know much about js, the most i've done in ajax is one of those web hosting whois scripts that suggests other domains

Name: Anonymous 2009-04-12 5:41

>>1
doesn't have to be complicated,
Yes, it does unfortunately, if you are using PHP that is. http://www.raditha.com/php/progress.php
At any rate, if you have to ask you don't need it anyway; go back to toying with file manipulation and database interaction.

Name: Anonymous 2009-04-12 6:22

Name: Anonymous 2009-04-12 8:26

mod_upload for nginx thread over

Don't change these.
Name: Email:
Entire Thread Thread List