Istvan
Posts: 0
Joined: Mon Oct 13, 2014 1:48 pm

window.open problem

Hi,

I have a page with where i would like a image with tap event (window.open(url, '_blank', 'location=yes')). This is working on desktop test, html version and in the appery tester, but doesnt working well on android / ios device.
I have on this page another image too with tap event ( window.location.href = 'tel:' + localStorage.getItem('phone') ). When i tap this then open the call dialog and under this proces load the url, browser (if i tapped before the "window.open" image)

How can i fix it?

Elvin Chu
Posts: 0
Joined: Sat Apr 11, 2015 2:52 pm

window.open problem

angularJS?

Istvan
Posts: 0
Joined: Mon Oct 13, 2014 1:48 pm

window.open problem

No.
jquery

Elvin Chu
Posts: 0
Joined: Sat Apr 11, 2015 2:52 pm

window.open problem

Get an value:

localStorage.getItem('ex1');

Example:

var phone=localStorage.getItem('ex1');
window.location.href='tel:' + phone;

Istvan
Posts: 0
Joined: Mon Oct 13, 2014 1:48 pm

window.open problem

Thanks but the call is working. window.open is the problem.

Elvin Chu
Posts: 0
Joined: Sat Apr 11, 2015 2:52 pm

window.open problem

Just use window.open("LINK"); it work fine for me

Istvan
Posts: 0
Joined: Mon Oct 13, 2014 1:48 pm

window.open problem

window.open(url, '_blank', 'location=yes')
this i mine. (url is variable)
but working after the call event only :-(

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

window.open problem

Hello,

Please use inAppBrowser on read mobile devices: https://docs.appery.io/docs/cordova-i...

Istvan
Posts: 0
Joined: Mon Oct 13, 2014 1:48 pm

window.open problem

var ref = cordova.InAppBrowser.open(''+url+'', '_blank', 'location=yes');
window.open = cordova.InAppBrowser.open;

sometihng like this?

Istvan
Posts: 0
Joined: Mon Oct 13, 2014 1:48 pm

window.open problem

var ref = cordova.InAppBrowser.open(''+url+'', '_blank', 'location=yes');

no change

On ios device working if tap anther image (tap event call a number) ... show dialog and load the browser with url. else nothing

Return to “Issues”