Discussion Forums  >  WebViews and HTML for Mobile

Replies: 3    Views: 128

Nsaya
I hate code!
Profile
Posts: 65
Reg: Jul 15, 2013
Kabul
2,400
07/22/13 06:38 PM (10 years ago)

How to link a word or sentence in custom HTML/TEXT with HTML Doc

Hi! Can someone kindly tell me how to link a word or sentence or picture in custom HTML/text which is cached in internal memory of the device with an HTML Doc file which is downloaded in the asset/BT_Doc folder? I tried the relative addressing and absolute addressing,but failed. Like: <a href="./assets/BT_Docs/11F1Q1M2.html"> word </a> <a href="file:///appname/assets/BT_Docs/11F1Q1M1"> word <a/> None of them worked; I searched a lot in the discussed topics, but could not fine a clear answer. Nsaya
 
Kaybee
buzztouch Evangelist
Profile
Posts: 659
Reg: Sep 22, 2012
Perth, Australi...
44,690
like
07/22/13 08:39 PM (10 years ago)
Use @Chris1's HTML Pro plugin ... works great, make sure you read the instructions.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/22/13 09:32 PM (10 years ago)
HTML is not Java or Android, so it doesn't refer to any Java/Android paths; it's not aware. If my html had an image link such as '<img source="myimage.png">' or '<a href="myworddoc.doc">Here is the Doc</a>' I would expect those resources to be in the same directory as my HTML file. If you're looking to connect the HTML file with 'other' Buzztouch resources, then Chris' plugin is probably what you want. Cheers! -- Smug
 
Nsaya
I hate code!
Profile
Posts: 65
Reg: Jul 15, 2013
Kabul
2,400
like
07/22/13 10:35 PM (10 years ago)
Thank you Kaybee and Smugwimp for your advices I bought HTML pro plugin. I will try it. I think the problem with Custom HTML is that it is cached, don't know in which directory. If both files (target and link files) are downloaded along with the source code, It could be modified manually. Anyhow, HTLM Pro, as you advised, is best and easy response to this question. Cheers Nsaya
 

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.