I'm using a 3rd party tool (TCPDF) to export data to PDF. If I use a form and post the data to the export php page it works fine. However, I have another need to call the same exporter page and pass it the params it needs via ajax to output the pdf file that way. Everything seems to be working fine, except when I get the output for the pdf it isn't opening up my pdf reader to look at it when I use the ajax call...it just leaves a blank screen. In Firebug console I can see the output for the pdf document, its just not poping up the pdf reader like it does if I use the form and hit the submit button.
Any ideas on what I can do to fix this?
Here's my ajax code if it helps:
url = "admin.php?rst_post=y&action=exportresults&sid=123&answerid=321&filterinc=show&exportstyle=full&answers=long&type=pdf&export_from=&export_to=&convertyto=&convertnto=";
$.ajax({
async: false,
type: "GET",
url: url,
contentType: "charset=utf-8",
complete: function(rc)
{
//alert(rc);
}
});