So I want to submit a form, wait for the response to come, and then fire off a trigger. The issue is the response to the form is a filecontentresult, so I cannot use AJAX. Essentially, I have a popup and then I wait for the form to submit and then close it, so that the user cannot edit the webpage mid-way through submission.
so like this:
$.Popup("Message");
var form = $('<form/>', {
action: url,
method: 'POST',
style: 'display:none;'
});
... Adding stuff to form here ...
form.submit();
$.Popup.close();
The issue is that the popup closes before the form response comes through.
To clarify: the result is NOT a redirect, it is a FILECONTENT result. This does not cause the page to reload.
Thanks in advance!