i have (i think) a small problem with the childbrowser plugin, the problem is the following;
All of the Childbrowser code works ok, it connects to the externa webpage on our server and i run it in full screen mode (so no navigation bar / na buttons etc.) and i am looking for the code to place on our webpage that closes the window.
What code do i need to place to close the childbrowser window on the webpage? on the webpage is just a image "Home" when i click that one i want to close the childbrowser session. Is that even possible?
Thanks a lot of all your help in advance,
Ewald
As mentioned by a kind person in an email, this would be the code to add in the webpage:
use the below code on the click event of the home button in the online html page:
window.plugins.childBrowser.close();
or the other option added to the plugin:
window.plugins.childBrowser.onLocationChange = function(loc){ if (loc.indexOf("exit.html") >= 0) { window.plugins.childBrowser.close(); }
what detects if the clidbrowser finds the exit.html page and then returns (closes) to the app
hope it will help you as well as it did for me