Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/forums/javascript/)
-   -   Simultaneous Forum Submission and AJAX (http://www.go4expert.com/forums/simultaneous-forum-submission-ajax-t18695/)

tesco 25Jul2009 22:09

Simultaneous Forum Submission and AJAX
I'm trying to create a file upload progress meter using AJAX and the PHP_UPLOAD_PROGRESS extension.
It works fine in Firefox.
The problem I seem to be having getting it to work in Other Browsers is that I cannot run an asynchronous query while a form submission is uploading.

How it should work:
User chooses a file to upload, and then hits the submit button. The file begins uploading.
In the background AJAX fetches the progress of this upload from the server then displays it in-page.
But as it is now in anything except firefox the ajax query won't run until the form submission is stopped either because it has finished or by hitting the browser stop button.

Any ideas how to make this work other than submitting the form with ajax (I can't do this)?


PS. I'm using YUI.

All times are GMT +5.5. The time now is 07:30.