开发者

JScript error in XVal, Has anybody seen this error?

开发者 https://www.devze.com 2022-12-09 23:44 出处:网络
Microsoft JScript runtime error: \'this.Plugins[...]\' is null or not an object coming from this code:

Microsoft JScript runtime error: 'this.Plugins[...]' is null or not an object

coming from this code:

var xVal = xVal || {
    Plugins: {},
    AttachValidator: function(elementPrefix, rulesConfig, p开发者_高级运维luginName) {
        if (pluginName != null)
            this.Plugins[pluginName].AttachValidator(elementPrefix, rulesConfig);
        else
            for (var key in this.Plugins) {
                this.Plugins[key].AttachValidator(elementPrefix, rulesConfig);
                return;
            }
    }
};


Make sure you are referencing xVal.AspNetNative.js AND xVal.jquery.validate.js in your master page.

0

精彩评论

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

关注公众号