problems in loading dynamically generated PDF(using TCPDF library)
Hello,
I'm working on application which gathers input from the user and generates PDF using TCPDF library.In this, using a form i'm collecting the user input data and was trying to load the generated PDF in jquery UI dialog.But the generated output on the dialog is some weird text(confusing) and unable to load the actual PDF file.Can anyone please help me with the above problem?
Thanks...
var dialogOpts = {
title: "Testing Ajax PDF Generation ",
bgiframe: true,
modal: true,
autoOpen: false,
height: 600,
width: 600,
draggable: true,
resizeable: true,
overlay: {
backgroundColor: '#000',
opacity: 0.8
},
open: function() {
//display correct dialog content
$("#buttonDialog").load("custom_pdfreport.php",{"startDate":srtDate,"endDate":edDate,"district":dst});}
};
$("#buttonDialog").dialog(dialogOpts); //end dialog
$('#testdistrict').live('click', function() {
$("#buttonDialog").dialog('open');
return false;
});