downloading thru ajax and iframe?
<p>I have this small piece if code:</p>

<pre><code>$.post('exportToExcel.php', function(data) {

    var iframe = document.createElement("iframe");
    iframe.src = ""+data;
    iframe.style.display = "none";

    document.body.appendChild(iframe);
});
</code></pre>

<p>But nothing happens, I'm trying to download a file seamless from the server thru jquery's ajax.</p>

<p>Anyone got a good fix?</p>
