Hi,
I use ajax call to upload file, during the upload I want to show a progress bar or ajax-loader image.
The ajax call code follows -
$.ajax({ url: "fileHandler.ashx", dataType: 'script', cache: false, async: false, contentType: false, processData: false, data: form_data, // Setting the data attribute of ajax with file_data type: 'post', progress: function (e) { if (e.lengthComputable) { $('#stam').html('Uploading...' + Math.round(e.loaded / e.total * 100)); } }, complete: function () { $('#waitDIV').hide(); alert('Done'); } });
How can I show a progress bar to the user ?
Thanks