Error PhoneGap Build + Cordova + ChildBrowser

Here is my code:

<script src="include/cordova.js" type="text/javascript"></script> <script src="include/sencha-touch-all.js" type="text/javascript"></script> <script type="text/javascript" charset="utf-8" src="include/childbrowser.js"></script> <link href="include/sencha-touch.css" rel="stylesheet" type="text/css" />

var childBrowser = null;
if (navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/)) {
   document.addEventListener("deviceready", onDeviceReady, false);
} else {
onDeviceReady();
}
function onDeviceReady(){
  console.log("PhoneGap is Ready");
  childBrowser = ChildBrowser.install();
}
function openChildBrowser(url)
{
        try {
            //both of these should work...
            var cb = new ChildBrowser();
            console.log(cb);
            cb.showWebPage('http://www.google.com');
        }
        catch (err)
        {
            alert(err);
            console.log(err);
        }
}

...

There is another code that is not related, but when I call openChildBrowser(), I get the following error:

Uncaught TypeError: Object #<Object> has no method 'exec' I believe this is a reference to a childbrowser call that calls exec on an object cordova.

When I look at an object cordvoa, I do not see the function execanywhere ...

Any ideas?

0
source share
7 answers

I ended up using the Eclipse and Phonegap SDK. I was able to make it work this way without using the build service.

This may help some people:

http://phonegap.com/start#android

https://github.com/phonegap/phonegap-plugins/tree/master/Android/ChildBrowser

0
source

iOS Android? . , var cb = new ChildBrowser() . , , ChildBrowser, , . . Promise:) ps - iOS, .

ChildBrowser.install();
window.plugins.childBrowser.showWebPage('http://www.google.com');
+1

, ChildBrowser .

, , cordova , ChildBrowser.

weinre - , . , script. , .

+1

async java script a.k.a Lazy Loading, , .

; iframe html. IFrame async. Uncaught TypeError: Object # 'exec'.

, , , -.

PS: sencha , . sencha-touch-all.

0

ChildBrowser Phonegap iOS. , ChildBrowser , "" deviceready. , html .

, , , , ( ), deviceready . ().

deviceready onload - , html , .

, .

0

/ 1.7.0 childbrowser github. .

0

childbrowser . , .

0
source

All Articles