[jira] [Commented] (CB-5733) Cannot close child window in iOS7

2014-01-07 Thread Anant Sajnani (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13864604#comment-13864604
 ] 

Anant Sajnani commented on CB-5733:
---

Actually, I am trying to close the child window if the child url has the word 
close at some point in it and have included the code below. It works on android 
and not iOS7. Any ideas why? 

Code-

function windowOpen(urlLink) {
url = urlLink;
reopenWindow = 'true';

ref = window.open(encodeURI(url), '_blank');
ref.addEventListener('loadstop', LoadStop);
ref.addEventListener('exit', Close);



}




function LoadStop(event) {



if (event.url.match(close)) {


ref.close();
reloadPage = true
localStorage.setItem(openWindow, url);

}




}

function Close(event) {

ref.removeEventListener('loadstop', LoadStop);
ref.removeEventListener('exit', Close);

 if (reloadPage == true) {

reloadPage = false;
Appery.navigateTo('StartScreen', {
allowSamePageTransition: true,
transition: 'slideup',
reloadPage: true
});

}

}

 Cannot close child window in iOS7
 -

 Key: CB-5733
 URL: https://issues.apache.org/jira/browse/CB-5733
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS, Plugin InAppBrowser
 Environment: iPhone 4s iOS 7
Reporter: Anant Sajnani
Assignee: Andrew Grieve

 I can't close child window in iOS7. Works on android
 refTest= window.open(http://www.cnn.com,_blank;);
 refTest.close();



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5733) Cannot close child window in iOS7

2014-01-07 Thread Anant Sajnani (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13864631#comment-13864631
 ] 

Anant Sajnani commented on CB-5733:
---

thanks. I am using appery to develop and build the app. Appery  abstracts it 
for me. Not sure how i can test it out using appery. Will email their support :)

 Cannot close child window in iOS7
 -

 Key: CB-5733
 URL: https://issues.apache.org/jira/browse/CB-5733
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS, Plugin InAppBrowser
 Environment: iPhone 4s iOS 7
Reporter: Anant Sajnani
Assignee: Andrew Grieve

 I can't close child window in iOS7. Works on android
 refTest= window.open(http://www.cnn.com,_blank;);
 refTest.close();



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)