语言

Menu
Sites
Language
Best Practice: Open URL stored in text file

Good morning everyone,

I was wondering what would be the best practice to handle this scenario.  We bring a text file into our app that contains some urls.  Think of it as an Email where people send you a few links to check. How can we code things so that the url's when clicked open in a new window (to not crash the app)?

--> Should we do a regex on the text file?
--> Is there a higher level API/Call that we can make so that by default URL's open in a new window (this would be more efficient)

Merci,

Gregory

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

1 回复
Lakshmi Grandhi
For opening any links u have to use "href" with link, to open the link in new window u have used