progress bar - FineUploader Progressbar questions -


i'm bit confused using progress event in v3.8 (using jquery wrapper) understand browsers support progressevent interface, i'm testing in firefox v20.0.1.

using of another's code, i've added this:

.on('progress', function (id, filename, uploadedbytes, totalbytes)         {                                      alert('uploadedbytes: ' + uploadedbytes + '\n totalbytes: ' + totalbytes);           if (uploadedbytes < totalbytes) {             progress = '"' + filename + '" uploading...  ' + math.round(uploadedbytes / totalbytes*100) +'%';                                                                               $('#qq-progress-bar').html(progress);         }         else {                 $('#qq-progress-bar').html('saving');         }    }) 

please @ alert function within event, above. if input parameters of method correct, shouldn't see name of uploaded file displayed in 'uploadedbytes' parameter. totalbytes parameter appears correct. alert displayed below:

enter image description here

i can visibly see progress bar in browsers, such firefox v20.0.1 bar doesn't progress. also, % value of amount uploaded doesn't much. i'll see single value, , it'll complete.

to appear i'm changing 'qq-progress-bar' named in file template. going wrong or making more complicated need to? need show progress, , text value isn't required nice. examples? thoughts?

thanks!

your method signature incorrect, need include event parameter when using jquery plugin:

.on('progress', function (event, id, filename, uploadedbytes, totalbytes) {   alert('uploadedbytes: ' + uploadedbytes + '\n totalbytes: ' + totalbytes);   if (uploadedbytes < totalbytes) {     progress = '"' + filename + '" uploading...  ' + math.round(uploadedbytes /       totalbytes * 100) + '%';     $('#qq-progress-bar').html(progress);   }   else {     $('#qq-progress-bar').html('saving');   } }) 

more information in the documentation on using jquery fine uploader.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -