I have been trying to figure out how to use the Batch API in an overlay via AJAX, but are not sure that’s possible at all? – As far as I can see the batch API, when javascript is enabled, calls the misc/batch.js, which at status=100 performs a window.location to return to the page who requested the batch.
To my knowledge, it’s not possible to catch and prevent this event (Without showing the user a popup with the choice of staying on or leaving the page). – So right now I don’t see a way to achieve this without running batch as if, javascript was not turned on?
Am I missing some Drupal magic here?
Sponsored by SupremePR