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

Form data submitted with netteAjax are incomplete #118

Open
janbuchar opened this issue Aug 14, 2015 · 0 comments
Open

Form data submitted with netteAjax are incomplete #118

janbuchar opened this issue Aug 14, 2015 · 0 comments

Comments

@janbuchar
Copy link

When a form with class ajax is submitted via XHR, the POST request contains the submit button that was used to submit the form, which is the correct behavior. When submitted using following code (#form doesn't have the ajax class), the request doesn't contain the submit button, which causes an invalid response.

$('#form').on('submit', function (e) {
    e.preventDefault();
    console.log('Submitting #form');
    $(this).netteAjax(e);
});
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