You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "veenapani (JIRA)" <ji...@apache.org> on 2017/12/11 21:19:00 UTC
[jira] [Created] (CB-13657) InAppBrowser not opening links in
system browser
veenapani created CB-13657:
------------------------------
Summary: InAppBrowser not opening links in system browser
Key: CB-13657
URL: https://issues.apache.org/jira/browse/CB-13657
Project: Apache Cordova
Issue Type: Bug
Components: cordova-ios
Reporter: veenapani
Assignee: Suraj Pindoria
I'm trying to open few links inside my application in safari browser (for ios) or chrome or other default browser's (for android) . I'm unable to get this to work, any help is highly appreciated. Below is my code:
{code}
var target = "_blank";
var options = "toolbar=yes,closebuttoncaption=,location=no,hardwareback=yes";
authDialog.authenticate('https://mytimebeta.cerner.com/','' ,'' ,'','',1);
var inAppBrowserRef = cordova.InAppBrowser.open('http://M1525246:9008/', target, options);
inAppBrowserRef.addEventListener('loadstop', function(event) {
inAppBrowserRef.executeScript({
file: "https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"
}, function() {
inAppBrowserRef.executeScript({
code: "jQuery('#timeExpense').on('click', function() {window.open('http://www.google.com','_system') });"
});
});
});
{code}
Note:
If I initialize var target = "_system"; the whole application is opening in safari and we don't want to do that. However, in my jQuery code inside the addEventListener, the _system is not working.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org