我正试图利用儿童BrowserPlugin(从) 电话:1.0.0和X-Code4。
but it gives error. Even I have added
key : ChildBrowserCommand
string : ChildBrowserCommand
in PhoneGap.plist
2011-10-03 16:17:06.530 samplePlugins[3913:40b] PGPlugin class ChildBrowserCommand (pluginName: ChildBrowserCommand) does not exist.
2011-10-03 16:17:06.531 samplePlugins[3913:40b] ERROR: Plugin ChildBrowserCommand not found, or is not a PGPlugin. Check your plugin mapping in PhoneGap.plist.
任何人都能够帮助我,我的制定或法典是错误的。
I put the ChildBrowser.js in www folder
index.html
<script type="text/javascript" charset="utf-8" src="ChildBrowser.js"></script>
function onDeviceReady()
{
var cb = ChildBrowser.install();
if(cb != null)
{
cb.onLocationChange = function(loc){ root.locChanged(loc); };
cb.onClose = function(){root.onCloseBrowser()};
cb.onOpenExternal = function(){root.onOpenExternal();};
window.plugins.childBrowser.showWebPage("http://google.com");
}
}
function onLocationChange(loc) {
navigator.notification.alert( Change to URL : +loc);
}
function onClose() {
navigator.notification.alert( onClose : );
}
function onOpenExternal() {
navigator.notification.alert( onOpenExternal : );
}