I am working on an JavaScript application using EmberJs. On click of a button, I make an ajax call using Jquery & this calls returns me a file path. Now under the success function of the jquery, I want to pass this path to an iframe which should eventually show me the download dialog box.
$.ajax({
type: 'GET',
url: exportURL,
success: function(result) {
//Result contains a value which is abc.xlsx**
//Now how can i show the download dialog?
}
});
The idea is to show the download dialog by passing the file path. What options do I have? I don't want to post-back the page.