title: Download file in jQuery mobile project
body: <p>Just started to teach myself javascript and jQuery mobile to create cross platform apps. I want to be able to click on links in my app to download a PDF file from a document that is synchronized (overwrites) with the local (on the phone) version of the file.</p>
  
  <p>From <a href="https://stackoverflow.com/questions/13794248/downloadable-files-using-jquery-mobile">this</a>, I found out I should use <code>data-ajax="false"</code>, so here is my first attempt:</p>
  
  <pre><code>&lt;a href="http://blablabla/download/pdf" data-ajax="false"&gt;Download&lt;/a&gt;
  </code></pre>
  
  <p>Unfortunately, nothing happens when I click the link after I have built and transferred it to my phone. It works fine in web browser, but not in Phonegap app. Any ideas what could be wrong? And how can I do this in a better way, to achieve exactly what I intend to make it do? If the file is already downloaded, I want the link to say "Open" instead, and have a link to the local version of the file.</p>