I have a form defined identically to how the user_login form example is set up in the dialog_example.module with the only substantial difference being that the form I'm submitting runs a Batch process via Drupal's Batch API. When submitting this form I get a Javascript alert "An error occurred while attempting to process /mypath/ajax/go".

Is there a preferred way to handle a form that submits to a batch process?

Comments

mlsamuelson’s picture

Eh, now that I've looked into the code, I see the issue is we're trying to call an invocation of the batch api via an ajax call and that doesn't provide the proper environment for the batch api, with its progress bar, to run.

To make this work, the batch would have to run in non-progressive mode. Currently there are issues blocking the use of that. See #638712: Make non-progressive batch operations possible.

devin carlson’s picture

Issue summary: View changes

Dialog 6.x is no longer supported.

devin carlson’s picture

Status: Active » Closed (outdated)