If multiple DHMTLX components are included on the same page, are each component’s dhtmlxcommon.js files supposed to be included, or are these files logically identical across each DHMTLX component? I.e., is it safe to load only one, or must each component’s dhtmlxcommon.js be included.
I have pages that use Windows, Menu, Toolbar, and Grid components, so I just want to confirm (or not) that four separate dhtmlxcommon.js files must be included.
Thanks.
Only one dhtmlxcommon.js is required per page.
If all components have the same version you can use any of existing dhtmlxcommon.js, if components have the different versions - you need to use dhtmlxcommon.js from the latest one. ( it is always backward compatible )
I am using Toolbar, Menu, Grid, and Windows, and the latest version of common.js among these is one recently provided with a set of fixes to Menu, dated 6/14/2010. (I am unaware if there is, nor do I observe, any version info in the file itself.) In any case, when I removed references to the JS files for Toolbar and Grid, I receive errors:
dhtmlx is undefined, dhtmlxtoolbar.js line 133
dhtmlx is undefined, dhtmlxgrid.js line 901
Object expected, dhtmlx.js line 11
this.cont.childNodes.length is null or not an object dhtmlxtoolbar.js line 8
Here’re the script inclusions:
[code]
[/code]
just change order of includes, dhtmlxcommon.js need to be include BEFORE other js files.
I apologize. I should have thought of that.