I have a form in an iframe, when this form is posted a file is returned to the user (based on the form information). This file is returned using content-disposition:attachment so that only a file save dialog shows up. I want to do something in javascript once the file has been returned to the user. I tried attaching a $(iframe).ready(); to the iframe after the form is posted, but it goes off instantaneously.
Worth noting: $(iframe).load(); does not work either, it is never triggered. The form post is technically the second load of the iframe (the first load displays the form in the iframe).
Any ideas?