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

4 posts, 0 answers
  1. Sanjeev
    Sanjeev avatar
    7 posts
    Member since:
    Mar 2013

    Posted 05 Nov 2013 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 05 Nov 2013 Link to this post

    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.
  3. Sanjeev
    Sanjeev avatar
    7 posts
    Member since:
    Mar 2013

    Posted 05 Nov 2013 Link to this post

    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" > ??
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 07 Nov 2013 Link to this post

    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.
Back to Top