I have an asp file that renders an XLS file and then downloads it. This works interactively however, when I invoke it in a function that is called by an image button, nothing seems to happen. I’m using ajax post in the following way:
{ view: "imagebutton", width: 30, label: "", align: "right", src: "./images/t_download.png", click: "downloadXLS();" }
....
function downloadXLS()
{
dhx.notice({ delay: 1000, message: "starting download ..." });
dhx.ajax().post("exporttoxls.asp?fileid=" + fileId + "&", formData);
}
Does the post somehow interfere with the download?