Quote:
|
Originally Posted by javajawa
1) Is there a simple way to get the progress of a XMLHTTP Request?
|
Status yes, but progress no. To do this would require a re-write of the whole protocol so that the client and server would talk during the passing of information. This would cause it to slow down and defeat its purpose of making a faster connection. Hence, I don't see this happening soon.
Quote:
|
Originally Posted by javajawa
2) Is there a simple way to transfer the file in the PHP script in blocks, and echo after each block completion
|
Not through the browser. This requires a
file type input which sends the whole chunk. There are Java and Flash implementations you could use which do this.
Quote:
|
Originally Posted by javajawa
3) Can you make another suggestion for a pure JS/AJAX/PHP solution. I don't need fancy scrollbars, just a percentage...
|
In theory...Since PHP creates a temp file for any $_FILES array item, could you not just send an AJAX request every 10 milliseconds and check the size of that temporary file? Then compare it with $_FILES['file']['size'].