Skip to content

multiple form submission failure #95

Open
@Ciki

Description

@Ciki

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');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions