php - Display FPDF report in a div from a jquery-fancybox -
i have fpdf report generator available pdf download report generated dynamically. trying display report on screen through jquery-fancybox, problem instead of being displayed report, showing special characters such as:
"��w�b 2��(ʷ���:��uc��\".
i need of of you.
below functions generating , display fancybox , pdf.
show fancybox , ajax-request call function generating pdf:
$(function() { $("*").on("click", ".fancypdf", function() { var data = $("form").serialize(); var url = this.value; $.fancybox.open({ type: "ajax", ajax: { datatype:"html", type: "post", url: url, data: data }, href: url, beforeclose: function(){ $(".fancybox-inner").unwrap(); } }); return false; }); //click
});
run fpdf report:
function exibirrelatoriopdf($dados = '') { $dados = $this->pesquisar(); $ci = &get_instance(); $ci->load->view('almembal/ajuste', $dados); }
Comments
Post a Comment