Page 1 of 2
How to get a link to open in a browser from the app
Posted: Mon Feb 11, 2013 7:32 am
by Denise
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
How to get a link to open in a browser from the app
Posted: Mon Feb 11, 2013 8:50 am
by Maryna Brodina
Hello! Try window.open() command - it will open new window.
How to get a link to open in a browser from the app
Posted: Wed Feb 13, 2013 8:21 am
by Denise
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
How to get a link to open in a browser from the app
Posted: Wed Feb 13, 2013 8:39 am
by Maryna Brodina
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');
How to get a link to open in a browser from the app
Posted: Wed Feb 13, 2013 8:49 am
by Denise
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?
How to get a link to open in a browser from the app
Posted: Wed Feb 13, 2013 9:45 am
by Maryna Brodina
Please make your app link public and send us that link
How to get a link to open in a browser from the app
Posted: Wed Feb 13, 2013 7:28 pm
by Denise
How to get a link to open in a browser from the app
Posted: Wed Feb 13, 2013 8:43 pm
by Kateryna Grynko
Hi,
To open link in phone browser run the following JavaScript code:
codenavigator.app.loadUrl("http://www.google.com", { openExternal:true } );/code
How to get a link to open in a browser from the app
Posted: Wed Feb 13, 2013 8:52 pm
by Denise
Hi Katya, I have tried this but it isn't working for me either?
How to get a link to open in a browser from the app
Posted: Wed Feb 13, 2013 9:00 pm
by Kateryna Grynko
On what device did you try? It works for me.