If the iframe fills with contents then we know a file download has occurred (in most cases, make sure to set a mime type!).
This assumes that you are using MVC helpers for returning FileResults (or derived classes like FileStreamResult).
If the cookie gets written then we know to stop polling and kill the iframe because the file download dialog/ribbon has been displayed.
If an error occurs the user gets an alert dialog that says A file download error has occurred, please try again.
My current role creating the framework for a highly Ajax application (like Gmail) inspired me to write this plugin for all to use web applications is where the web is going anyways so there has to be a better way.
Onload function (event) var blob sponse; ze var eateElement a eateObjectURL(blob wnload"Dossier new Date ".pdf ick ; nd Second solution, use the jquery-ajax-native plugin.
Another classic problem with browser file downloads Happy path user experience.
Js Library jQuery File Download is a cross server platform compatible jQuery plugin that allows for an Ajax-like file download experience that isnt normally possible using the web.