开发者

type not defined in asp.net mvc js file

i am getting an error type not defined when i try to register the name space in the js file

Type.registerNamespace("OrganizationStructure");
OrganizationStructure.OrgStructure = function() {
            this.orgStructureId = null; 
            this.name = null;
            this.nodeList = null; 

}
OrganizationStructure.OrgStructure.registerClass('OrganizationStructure.OrgStr开发者_如何学运维ucture');

OrganizationStructure.Node = function() {
            this.parent = null;
            this.name = null;
            this.list = null;

        }
        OrganizationStructure.Node.registerClass('OrganizationStructure.Node');

i dont know why this error occuring


registerNamespace and registerClass functions are part of the MS AJAX framework and have nothing to do with jquery. So the question is which one of the two frameworks you would like to use MS AJAX or jquery? So if you want to use those functions make sure you have included the proper files: MicrosoftAjax.js, MicrosoftMvcAjax.js.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜