1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Simultaneous Forum Submission and AJAX

Discussion in 'JavaScript and AJAX' started by tesco, Jul 25, 2009.

  1. tesco

    tesco New Member

    Jul 25, 2009
    Likes Received:
    Trophy Points:
    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.

Share This Page