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

multiple form submission failure #95

Open
Ciki opened this issue Jul 31, 2014 · 0 comments
Open

multiple form submission failure #95

Ciki opened this issue Jul 31, 2014 · 0 comments

Comments

@Ciki
Copy link
Contributor

Ciki commented Jul 31, 2014

I am trying to manually submit form using nette.ajax but it only gets submitted first time. Other times it ends on this condition because statusText is set to cancelled - magic for me. I don't really have any idea what's wrong or where I should start digging. Any help will be appreciated!

Code I use:

fileUploadForm.on('submit.file-upload', function(e) {
                                    $(this).netteAjax(e, {
                                        complete: function(payload, status, xhr) {
                                            basicFileUploadHandler._successCb(payload, status, xhr, uploadRow, filesize);
                                        }
                                    });
                                    fileUploadForm.off('submit.file-upload');
                                    e.stopImmediatePropagation();
                                    e.preventDefault();
                                    return false;
                                }).trigger('submit.file-upload');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant