Any idea for send POST for a function (url) via jquery-fancybox?
问题 I need to display a PDF report generated from a PHP function in a jquery-fancybox. The problem is that I need to submit $_POST form data to the fancybox. Could you give me an idea of how to do this? jQuery function that performs the function to generate the report: $(function() { $("*").on("click", ".fancypdf", function() { var form = $("form").serialize(); var url = this.value; console.log("Button=" + url); $.fancybox({ type: 'html', autoSize: false, content: '<embed src="' + url + '