Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If an error occurs when using ajaxSubmit and uploading a file, error & completed handlers aren't called. #14

Closed
scompt opened this issue May 15, 2010 · 2 comments
Labels

Comments

@scompt
Copy link

scompt commented May 15, 2010

This is happening because the DOM isn't available in the iframe after checking 100 times. When that happens, the code simply returns out of the 'cb' method without reaching the bottom where the callbacks are called. The consequence of this is that if an error occurs while uploading something, the spinner (or whatever in-progress signal is in use) never stops and the user doesn't know what's going on.

@scompt
Copy link
Author

scompt commented May 15, 2010

My fork (http://github.com/scompt/form) fixes this issue.

@malsup
Copy link
Collaborator

malsup commented Aug 9, 2010

Good catch, thank you.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants