想要调用创建pdf文档的aspx的IHAC。当前的解决方案如下:
$(document).on('click', '#print', function (event) {
location.href = "Handlers/PrintHierarchy.ashx";
event.stopImmediatePropagation();
});
我想在处理发生时向页面添加一个加载器。像这样
$(document).on('click', '#print', function (event) {
$("#bottomRight").mask("Processing document...");
location.href = "Handlers/PrintHierarchy.ashx";
$("#bottomRight").unmask();
event.stopImmediatePropagation();
});
问题是我无法检测我的PrintHierarchy。Aspx完成,我的加载器立即关闭。
我可以推迟关闭加载程序,当文件保存对话框打开?
您需要检测文件保存对话框打开而不是aspx完成。
试试:http://geekswithblogs.net/GruffCode/archive/2010/10/28/detecting-the-file-download-dialog-in-the-browser.aspx