You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/11 17:03:25 UTC

[GitHub] [cordova-plugin-inappbrowser] jdpsbh opened a new issue #726: executeScript with hidden set to yes

jdpsbh opened a new issue #726:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/726


   Hello,
executeScript is not working when Inappbrowser hidden option is set to yes. Is this a normal behavior?
   
   let ceiLogin = true;

   let ceiNavegador;
   
   ceiNavegador = cordova.InAppBrowser.open(url, '_blank', 'hidden=yes');
   ceiNavegador.addEventListener('loadstop', ceiLoadStopCallBack);
   
   function ceiLoadStopCallBack(){

        if(ceiLogin == true){

             ceiLogin = false;

             ceiNavegador.executeScript({ code: 'window.location = "here_goes_my_new_url";' });

        }else{
             
alert("This is the login page");

        }
   
}
   
   The alert "This is the login page" is not firing, meaning, I guess, the code window.location is not executing.
   
   But, if i set hidden to NO, the alert is firing.
ceiNavegador = cordova.InAppBrowser.open(url, '_blank', 'hidden=no';
   
   Thanks!
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] timbru31 closed issue #726: executeScript with hidden set to yes

Posted by GitBox <gi...@apache.org>.
timbru31 closed issue #726:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/726


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] timbru31 commented on issue #726: executeScript with hidden set to yes

Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #726:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/726#issuecomment-642846339


   You still fail to provide a valid issue that follows the template. What operating system? Which versions of Cordova are you using? What's the version of the installed plugin? Without these information it's impossible for us to help.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org