Simultaneous Forum Submission and AJAX

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

  1. tesco

    tesco New Member

    Joined:
    Jul 25, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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)?

    Thanks.


    PS. I'm using YUI.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice