Denise
Posts: 0
Joined: Wed Jan 30, 2013 5:59 am

How to get a link to open in a browser from the app

Hi there I have a link from a page that I want to open in a browser window rather than open the web link inside the app. Is this possible? I am getting the link from my database so the app page is build dynamically depending on what product you choose.

Thanks
Denise

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to get a link to open in a browser from the app

Hello! Try window.open() command - it will open new window.

Denise
Posts: 0
Joined: Wed Jan 30, 2013 5:59 am

How to get a link to open in a browser from the app

Hi there, thanks for your help, I have tried adding this into the mapping but the app seems to just hang without loading?

Please help
Denise

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to get a link to open in a browser from the app

Hello! You can do this on button Click event for example. On Click run JS:

window.open('here should be your link from a page');

Denise
Posts: 0
Joined: Wed Jan 30, 2013 5:59 am

How to get a link to open in a browser from the app

That doens't work as the link comes from the db, so I tried putting in window.open('{link}'); but that doesn't work and I tried adding the JS to the mapping as mentioned above but that won't work for me either?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to get a link to open in a browser from the app

Please make your app link public and send us that link

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to get a link to open in a browser from the app

Hi,
To open link in phone browser run the following JavaScript code:
codenavigator.app.loadUrl("http://www.google.com", { openExternal:true } );/code

Denise
Posts: 0
Joined: Wed Jan 30, 2013 5:59 am

How to get a link to open in a browser from the app

Hi Katya, I have tried this but it isn't working for me either?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to get a link to open in a browser from the app

On what device did you try? It works for me.

Return to “Issues”