Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQueryMobile - unable to link to PDF documents

I'm unable to link to PDF documents on a mobile site using jQueryMobile.

The link is opened with the jQueryMobile-effects and displays a page with the text "undefined".

Any help is appreciated!

like image 262
Fredrik Avatar asked Apr 10 '12 08:04

Fredrik


2 Answers

Add data-ajax=false to your link <a href="your.pdf" data-ajax="false">pdf</a> Since pdf is not supported on alot of phones you may want to explore something like this http://www.labnol.org/gadgets/ipod/read-pdf-text-email-on-ipod-mobile-phone/1929/

like image 97
codaniel Avatar answered Oct 31 '22 11:10

codaniel


You may want to consider integrating in pdf.js. It seems to be an option considering some mobile devices don't directly support pdf's.

http://mozilla.github.com/pdf.js/

like image 43
Nick N Avatar answered Oct 31 '22 09:10

Nick N