how to: open or save a pdf file from inside my html5 based iphone app?
If I just use a standard link the pdf opens but it basically hijacks my app interface and the user can no longer back out of the pdf. If I make the pdf load into a div then i 开发者_如何学运维see gobbeldygook in the div. I want the link to either save the pdf with a standard Save As dialog or open the pdf in a default app - possibly giving the choice of apps is there is no default.
I am using html5 for the iphone. My app uses its own history for navigation.
PS: so far I am using a link like so
<a id="pdflink" href="http://www.myserverzzz.com/menus/menu_4869_document.pdf" target="_blank">Download PDF</a>
and it seems to work, but I'm worried that maybe this is not optimal, it would be better if I could open the pdf in a div inside my app, like a div below the link or below a download pdf button.
精彩评论