> All I'm trying to do is make the options persist into the success
> callback - just like they do in the beforeSubmit callback.  This way
> some information can be stashed on dynamically generated javascript.

Since the form plugin uses jQuery's $.ajax method under the hood, you
could use the 'complete' callback to get access to the options object:

$('#myForm').ajaxForm({
    beforeSubmit: function(data, $form, opts) {
        opts.stashed = 'hello';
    },
    complete: (xhr, status) {
        // *this* is the settings object
        alert(this.stashed)
    }
});

Another way to stash data, for *any* element, is the 'data' method:

http://docs.jquery.com/Core/data#namevalue


Mike

Reply via email to