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

Access form from error callback #568

Open
thewebartisan7 opened this issue Jan 16, 2020 · 1 comment
Open

Access form from error callback #568

thewebartisan7 opened this issue Jan 16, 2020 · 1 comment

Comments

@thewebartisan7
Copy link

thewebartisan7 commented Jan 16, 2020

Description:

Seem that error callback has not $form object to access it.

For example other callback have it, like:

        beforeSerialize: function($form, options) {
            // do something with $form
        },
       success: function(responseText, statusText, xhr, $form) {
            // do something with $form
       }

But error has only:

               error: function (xhr, status, error) {
                   // No $form object
                },

Expected Behavior:

               error: function (xhr, status, error, $form) {
                   // has $form now
                },

Or am I missing something?

@kevindb
Copy link
Contributor

kevindb commented Jun 7, 2020

The error callback has been deprecated due to incompatibility with jQuery 3 Slim. (issue #544)
https://jquery-form.github.io/form/options/#error
PRs increasing compatibility with newer versions of jQuery are much appreciated.

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

No branches or pull requests

2 participants