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

Added support for functions in 'data' option for ajaxForm and ajaxSubmit. #262

Merged
merged 5 commits into from
Feb 20, 2017

Conversation

franciscoruiz
Copy link
Contributor

Currently the only way to attach dynamic data to a request is by work-arounds, like altering the form data in-place inside beforeSubmit. But it doesn't work in browsers that require an iFrame, as this hook is not invoked while re-collecting the data to create the form inside the iFrame.

A possible solution is to support a function to be specified as the data property for ajaxForm and ajaxSubmit; and that's what this pull request is about.

Cheers.

@kevindb kevindb reopened this Feb 20, 2017
@kevindb kevindb merged commit 04b3a20 into jquery-form:master Feb 20, 2017
kevindb pushed a commit that referenced this pull request Mar 29, 2017
* Replace serialized "+" with space

Fixes regression introduced by #262
https://www.drupal.org/node/2860158#comment-12011599
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

Successfully merging this pull request may close these issues.

3 participants