Submission AJAX Spinner Stays Up On Long Submissions

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Submission AJAX Spinner Stays Up On Long Submissions

Kaex
I'm running into a small issue when I submit to an external service that takes ~1 minute or longer to respond.  It doesn't appear that the xforms-submit-done event is being dispatched and the AJAX "spinner" image doesn't go away.  If the response is quicker, i.e. < 30 seconds, everything works fine.  Am I doing something wrong?

My submission:

<xforms:submission id="save-submission" f:url-type="action"
                         action="form/submit" relevant="false"
                         method="post" replace="instance" ref="instance('fr-form-instance')">
    <xxforms:script ev:event="xforms-submit-done">
          alert("I'm done!");
    </xxforms:script>
</xforms:submission>
Reply | Threaded
Open this post in threaded view
|

Re: Submission AJAX Spinner Stays Up On Long Submissions

aero
Have you checked the orbeon.log for errors? Maybe the connection drops or the other end closes it?
Reply | Threaded
Open this post in threaded view
|

Re: Re: Submission AJAX Spinner Stays Up On Long Submissions

Erik Bruchez
Administrator
So can you tell whether your submission actually terminates? Try
enabling XForms logging to see if you can get more details about
what's happening:

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-logging

-Erik

On Tue, Feb 28, 2012 at 2:12 PM, aero <[hidden email]> wrote:

> Have you checked the orbeon.log for errors? Maybe the connection drops or the
> other end closes it?
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Submission-AJAX-Spinner-Stays-Up-On-Long-Submissions-tp4429757p4429773.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws