"Save As" dialog using PHP and/or JavaScript
<p>I have url to PDF file. I need to have a link on the page so that when the user clicks the link, they see the "Save As" dialog.</p>

<p>I found a <a href="http://stackoverflow.com/questions/6699461/forcing-save-as-dialog-via-jquery-get">solution using an <code>iframe</code></a>, but if the user has installed a PDF plugin, the "Save As" dialog does not show up.</p>

<p>Is there any other way to show the user the "Save As" dialog?</p>

<p>Sorry, I forgot to mention that after user will click on link, request will be sent by ajax. It will be post request for a PDF file url. In the result of this request I will know there is PDF file is located, and now I would like to show the user Save as dialog instead of opening it in browser.</p>
