jquery - Content upload progress using ajax -
i have page in user input content , save it.
i have function sends data server using xmlhttprequest. requirement show progress percentage while data being saved. 1 know way this?
i thought use swfupload, appears specific file upload opposed dynamic content upload.
any appreciated.
thanks
latest xmlhttprequest level 2 spec has added support events. specifically, can show upload progress like:
xhr.upload.onprogress = function(evt) { if (evt.lengthcomputable) { var percent = 100 * evt.loaded / evt.total; trace("[onprogress] " + percent); } }
the issue today lacking of support in web browsers. you'll have work around via flash or channel server progress notification. can find many discussions in site.
Comments
Post a Comment