I am trying to do an ajax request
$.ajax({
type: \"post\",
url: \"download.php\",
error: function(data, status, err){
alert(JSON.stringify(d
The element that was calling this was an anchor tag that would call this then download an exe file and when the file download dialog box poped up it would cancel this request as if it were navigating to a new page.
I changed it to
function download(fileid, href)
{
$.post("download.php", {task: "download", fileid: fileid}, function(data){
window.location.href = href;
});
}
Download