How does jQuery.post() deal with Content-Disposition: attachment?
Going slightly crazy here. I'm making an Ajax call using jQuery.post as follows: $.post('php/print.php',{data:dS},function(res){... },"text"); I'm returning from print.php (as a test): header("Content-type: application/vnd.ms-word"); header("Content-Disposition: attachment;Filename=test.doc"); echo "<html>"; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1252\">"; echo "<body>"; echo "Testing-2-3!"; echo "</body>"; echo "</html>"; The data is coming through fine according to Firebug, including the headers. But how do I get the browser (Firefox, in this instance)