Possible Duplicate:
Create a progress bar on $.ajax call
My problem is simple, I need to get the real-time loading percentage of an XMLHttpRequest, (i'm using Jquery's post()
system) so i can display it with my progress bar.
I didn't managed to find how to do it, i found some method using php's flush()
, but i'm not convinceed
So if anybody know a simple method to get the percentage so i can show current loading progress ...
The XMLHttpRequest is returning html code, it's a part of the page and i'm displaying it in a div. I want to put a progress bar in that div until i got all the datas ...
Edit : I'm not uploading anything, just sending an id to a php script and getting back the html datas.