jQuery ajax load a page with an automatic download
<p>I have a page that produces a PDF and automatically downloads the file. </p>

<p>I have to submit some variables to the page for the PDF be produced. Right now I have it submitting a form using jQuery like this <code>$("#expForm").submit();</code>. I am submitting form jQuery because I have to apply some logic before the form is submitted.</p>

<p>This works fine and a PDF pops up right away.</p>

<p>The problem is I need to have some sort of loading icon come up because the exporting page loads a lot of data and I do not want to confuse the user.</p>

<p>I tried doing this using <code>$.post('exp.html', $("#expForm").serialize() ,function(data) {});</code></p>

<p>The export page loads but it does not pop up the PDF. If I open the link from Firebug's console the PDF then loads.</p>

<p>Does anyone know of a way to make it auto download the PDF with using the <code>$.post()</code></p>

<p>Any help on this would be great. Thanks</p>
