
done(function () else if( document.Top of this page MultiPresenter (for Windows, Mac) The demo page includes many other, 'better UX' examples as well. Here is a simple use case demo using the plugin source with promises. In conjunction with jQuery UI a developer can easily show a modal telling the user that a file download is occurring, disband the modal after the download starts or even inform the user in a friendly manner that an error has occurred. SuccessCallback and failCallback functions allow for you to be explicit about what the user sees in either situation

This feature is becoming crucial for modern web applications User never leaves the same page they initiated a file download from.

Very easy to setup with nice visuals (jQuery UI Dialog, but not required), everything is tested too It works pretty similarly with an iframe but has some cool features that I have found quite handy: I have created the jQuery File Download plugin ( Demo) ( GitHub) which could also help with your situation. or you know, something with better UX.Ģ012 original jQuery/iframe/cookie based approach

then(resp => resp.status = 200 ? resp.blob() : Promise.reject('something went wrong'))Ĭonst url = (blob)

check to make sure you didn't have an unexpected failure (may need to check other things here depending on use case / backend)
