Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Opening a website link

Hi,
how do it open a website link by clicking at button on my application?
I tried to follow this tutorial but i do not want the link to display on the input.

http://devcenter.appery.io/tutorials/...

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Opening a website link

Hello Lim,

In the tutorial, in the js code, the address is taken from the input

preAppery('link_source').val()/pre

You should replace this part with the line with your address in the js code

pre'http://mysite.com'/pre

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Opening a website link

Hi,

I tried replacing but my codes still doesnt go to the website.

My codes are:

var radioGroup = $('input[name=cordova_web_view]:checked');
window.open('http://google.com');

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Opening a website link

Hi so sorry, it works fine now.

But can i ask how do i make the website appear inside my link instead of opening it in a new tab?

i have added the cordova_web_view, stated in the tutorial, but it doesnt work.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Opening a website link

Lim,

You may open it inside, but how then to return to the application? On Android there is a button Back, but there isn't on IOS. So it is better to open in a new tab and close by button Done

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Opening a website link

Hi,
Thanks for the advice. Isit possible to do a pop up box where the website will display in the box and when they done they can just click the cross button?
As we are doing it on ipad, if we open the website it will go to Safari and it will be very troublesome to go back to the application.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Opening a website link

Lim,

You may open it inside the popup, in iframe. More information you may find here:
https://developer.mozilla.org/ru/docs...
Or you may do this way:
prewindow.open('http://apache.org', '_blank', 'location=yes');/pre

Return to “Issues”