开发者

Phonegap Plugin Error during initialization

Hey guys i'm workin on an app, which check whether a user has logged in the app before or not. I use phonegap in combination with jquery-mobile. But if i test my app with ripple with the following code:

    var SaveUserStatus = function() { 

    }

    SaveUserStatus.prototype.check = function(succes,fail) {
    return PhoneGap.exec(function(args) {
        success(args);
    }, function(args) {
        fail(args);
    }, 'SaveUserStatus', 'getUserStatus', '');
}

PhoneGap.a开发者_运维百科ddConstructor(function() {
    PhoneGap.addPlugin('saveUserStatus', new SaveUserStatus());
    PluginManager.addService("SaveUserStatus","net.testing.plugins.SaveUserStatus");
});

I get always following error messages: "Uncaught TypeError: Object [object Object] has no method 'hasResource' - phonegap-1.0.0.js:936" and "Uncaught TypeError: Object [object Object] has no method 'addConstructor' - plugin.js:17 " Has anyone the same error or see the error, this would be nice because i going crazy with that!


Comment out

<script type="text/javascript" charset="utf-8" src="phonegap-1.1.0.js"></script>

in your HTML-File.

For further informations read the comment by Dan Silivestru http://ripple.tinyhippos.com/forums/6/topics/50

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜