malsup/form — pull request #262 by franciscoruiz (2012-12-20 15:41:16+00:00)
Title: Added support for functions in 'data' option for ajaxForm and ajaxSubmit.

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.