Discussion Forums  >  WebViews and HTML for Mobile

Replies: 2    Views: 1188

satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
08/03/12 03:53 AM (13 years ago)

How to Embed pdf on HTML5?

After create mobile app from jquery mobile web site by using codiqa. I'v got three files(app.html, my.css, my.js and a folder images) , then i put it all to BT_Docs. From btserver 2.1.7 , i created one menu by using HTML Doc with app.html as file name in the project. After open in my mobile it work fine. But i want to added some pdf link on the app.html page whenever user touch, it will show popup windows to selecting a pdf reader. then i put the code: <embed src="http://btserver.phayoune.org/APPs/WBAC/tipitaka01.pdf" width="500" height="375"> There are nothing show in my phone. but when i create another menu by using PDF Doc nickname in BT server. it's work like i want. So how can i put a pdf with link or embed or iframe like PDF Doc nickname in my HTML pages which meet the result as using PDF Doc? Thank you in advance. Satit P.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
08/03/12 05:57 AM (13 years ago)
Have you tried just a regular link like <a href="http://btserver.phayoune.org/APPs/WBAC/tipitaka01.pdf" >My file<a/>
 
satit
I hate code!
Profile
Posts: 89
Reg: Feb 16, 2012
bangkok
6,640
like
08/03/12 06:37 AM (13 years ago)
After i put a link <a href="http://btserver.phayoune.org/APPs/WBAC/tipitaka01.pdf" >My file<a/> it seem to be open mobile browser and then download. After download finished , when i touch the file pdf then pop up windows show selecting pdf reader. but i want to touch once on the pdf link then pop up windows show selecting pdf reader. BTW: when i put my pdf into BT_Docs (offline) the link changed to: <a href="tipitaka01.pdf" >My file<a/> after touch the link my phone say: undefined Why? How to do that? Thank you in advance. Satit P.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.