jquery/pdfobject problem to embed pdf to a div
<p>I have this working code:</p>

<pre><code>$.post("./php/acc_con_def.php",
    {contratto:contratto,vers:vers,scelta:"nuovo"}, 
    function(data){
        window.open("./temp/accettazione.pdf")
});
</code></pre>

<p>I'm tring to use this code to open pdf in a div but it doesnt work here is my used code:</p>

<pre><code>    $.post("./php/acc_con_def.php",
    {contratto:contratto,vers:vers,scelta:"nuovo"}, 
    function(data){
        $("#hideShow").show("slow");
        function embedPDF(){
            var myPDF = new PDFObject({ 
              url: './temp/accettazione.pdf'
            }).embed('hideShow'); 
          }
          window.onload = embedPDF; 
});
</code></pre>
