PhoneGap/Cordova: childBrowser plugin giving strange URL (iOS) -
i having great deal of difficulty getting childbrowser plugin work
currently when click link nothing on ios simulator , when click using browser web page not found error web address looking like:
file://myapp/www/%c3%a2%e2%82%ac%c2%9d#ᅢᄁ¬ツᆲᅡン
i stuck ideas on whats going on , causing this, advice appreciated.
my code is:
<script type="text/javascript" charset="utf-8" src="js/childbrowser.js"></script> <script> function ondeviceready() { childbrowser = childbrowser.install(); var root = this; cb = window.plugins.childbrowser; if(cb != null) { cb.onlocationchange = function(loc){ root.locchanged(loc); }; cb.onclose = function(){root.onclosebrowser(); }; cb.onopenexternal = function(){root.onopenexternal(); }; //cb.showwebpage(“http://google.com”); } } function onclosebrowser() { console.log(“onclosebrowser!”); } function locchanged(loc) { console.log(“locchanged!”); } function onopenexternal() { alert(“onopenexternal!”); }
<body onload=”onbodyload()”> <a href=”#” onclick=’cb.showwebpage(“http://www.google.com”);’>click me</a>
it difficult part of app doing wrong given source not enough. have small demo application uses childbrowser cordova 1.7.0 can check make sure source unaltered.
Comments
Post a Comment