Previously done with Ajax, the code is as follows (ActionURL is the path to the generic handler ashx):
$.ajax ({
url:actionurl + '? action=export&id= ' + $ (' #fm_ID '). Val (),
dataType: ' JSON ',
success: function (jsonstr) {
//top.art.dialog.tips (' Export succeeded! ');
}
There is no way to eject the download box.
Direct browser address bar to enter the relevant page address and open the download box can be pop-up download, consider may be the reason for the IFRAME.
Because the input page address can open the download box, so consider opening a new page download, but because of the npoi for export, to pass the DataTable, so do not do so.
Want to use the window.showModalDialog method:
However, only a blank form pops up and is not downloaded.
So finally using window.open to achieve:
The above is a small series for you to bring the Easyui export Excel can not pop-up download box of the quick solution to all the content, I hope that we support cloud Habitat Community ~