This is a migrated thread and some comments may be shown as answers.

HIGH PRIORITY - how to get links to load up in external or system browser

3 Answers 46 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
intechcreative
Top achievements
Rank 1
intechcreative asked on 05 Nov 2013, 10:55 AM
HI, 
I ve tried everything to get the links to load up in an external broswer .
When i am using the simulator the links seem to open up in an external window, but when i am using the deployed application on my android device the webview is changing to the desired link or the link is loading up on the application .
What do i do help needed urgently

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 05 Nov 2013, 11:23 AM
Hello Sanjeev,

You can accomplish the desired functionality by utilizing Cordova's InAppBrowser. The second argument of the window.open function specifies the target in which to load the URL:
  • _self: Opens in the Cordova WebView if the URL is in the white list, otherwise it opens in the InAppBrowser.
  • _blank: Opens in the InAppBrowser.
  • _system: Opens in the system's web browser.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
intechcreative
Top achievements
Rank 1
answered on 05 Nov 2013, 11:39 AM
Hey Steve is there a way where in i can use this in my <a> tag rather then a java script as i am sending a jsonp response and this response is appended now trying to figure out which is a hyper link and then using a window.open is a pain .
so can i use something like <a  '_system' href="xyz.com" > ??
0
Steve
Telerik team
answered on 07 Nov 2013, 04:56 PM
Hello Sanjeev,

If you're using Kendo UI in your project, setting data-rel="external" attribute to the link element should open the page as external.
Otherwise you can hard-code the javascript inside the hyper link:

 <a id="inappbrowser"  href="javascript:window.open('http://apache.org', '_blank', 'location=no');" >External</a>


Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
HTML5, CSS, JavaScript
Asked by
intechcreative
Top achievements
Rank 1
Answers by
Steve
Telerik team
intechcreative
Top achievements
Rank 1
Share this question
or