jquery-form / jquery-form/form
Access form from error callback
Open
Nobody has claimed this yet.
feature
help wanted
- Dominant language
- JavaScript
- Stars
- 5.1k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the plugin's error callback entry point and compare its arguments with the beforeSerialize and success callbacks shown in the issue. Trace how the form object is available to those callbacks, then verify that error handlers receive it as a fourth argument without breaking the existing xhr, status, and error values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100