Discussion Forums  >  WebViews and HTML for Mobile

Replies: 5    Views: 129

Dromundi
I hate code!
Profile
Posts: 43
Reg: Feb 17, 2012
location unknow...
730
08/20/12 12:58 AM (13 years ago)

External link in a HTML doc

Dear all, I use BT v1.5 for iOS. I have an app that loads HTML doc via the HTML plugin. Everything works fine expect that I have sometimes external links in these pages. When I tap on it, the pages open in the app but I would like them to open in the safari browser instead. How to do that? Regards,
 
Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
like
08/20/12 03:49 AM (13 years ago)
Never used 1.5 but sounds like you need to use the launch native app screen instead of html doc
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/20/12 11:14 AM (13 years ago)
Yep, using the Launch Native App screen, then selecting "Browser, enter a URL" will do the trick! Mark
 
Dromundi
I hate code!
Profile
Posts: 43
Reg: Feb 17, 2012
location unknow...
730
like
08/20/12 01:14 PM (13 years ago)
Hey both, Thx for the answer but this is not exactly what I was looking for. I was not clear in my description sorry for that. Actually I meant that in my HTML docs I have links to other websites. So when someone is in my app this person can go to the HTML doc accessible from a menu list. On this HTML doc, they are plenty of information, images sometimes and so on. I would like that when they click on one link in the HTML Document (the link is just 1 or 2 words among sentences and images of these HTML docs), it opens the webpage is safari and not in my app. I hope it is clearer.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/20/12 01:19 PM (13 years ago)
Gotcha. In the Advanced Properties section for the HTML Screen, there is a "Document Behaviour" section and a "Show Launch in Native App Button" section. Set this to yes, and the person can launch that entire page in the native browser (not just the link, though). From a non-coding perspective, that's the best you can do with the current functionality. Though, they could hit the link, which opens in the normal webView, but which has a Launch in Native App button. David @ Buzztouch also wrote this document on intercepting tap events, which might help you code the actual link itself to launch in the native browser: http://www.buzztouch.com/files/howtos/intercepting-menu-taps.pdf Mark
 
Dromundi
I hate code!
Profile
Posts: 43
Reg: Feb 17, 2012
location unknow...
730
like
08/22/12 07:48 AM (13 years ago)
Hi Mark, Thanks a lot for the answer. About the first solution it could possibly be ok but I would really prefer that it is just the link. I have to think if I can compromise with that. Thanks as well for the link but my knowledge of C-objective is very limited. I would be afraid to destroy my app changing the code! ;)
 

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.