I have a page which has an iframe in it. This iframe contains what i need to upload files to the server. When a user clicks the upload button the iframe starts to upload the file.
Whilst the iframe is loading the file, I need make a xmlhttpRequest in the parent window which checks to see the status of the file upload. The problem is that when i make the request i don’t get a response until the iframe has finished uploading the file (which completely voids what i am trying to do).
Is there a way that i can force the xmlhttpRequest to respond before the iframe finishes loading. Or better yet does anyone know how to upload a file via xmlhttpRequest.