7 Replies Latest reply on Jun 26, 2009 9:45 AM by ilya_shaikovsky

    Perform a form submission after the current ajax request is

    amitev

      Hi all! I have the following use case: i have an input field that fires an ajax request on change. The user changes the value and hits enter and 2 paralel requests are fired - one ajax and the other is the regular form submission. What i want is to wait for the ajax request to complete and to fire the submission after this.

      The first thing on my mind is to get to put a logic on the commandButton that will check the queue (with getSize()) periodically to see if it's empty and if it is to fire the request.

      Is there a more "standard" way to do this?