Symptom: One of next error appears
“dhtmlx is undefined”
“dhtmlxExcell is undefined”
“dhtmlX[Something] is undefined”
Solution: Check order of js files, it must be
dhtmlxcommon.js
dhtmlx[Component].js ( dhtmlxgrid.js for grid, dhtmlxtree.js for tree and etc. )
any extensions for the component
In case of dhtmlxgrid
dhtmlxcommon.js
dhtmlxgridcell.js
dhtmlxgrid.js
any extensions for the grid
In case of layout, windows, tabbar, accordion components you need to include dhtmlxcontainer.js as well
Alternative solution: full package contains dhtmlx_full.zip ( dhtmlx_standard_full.zip ) archive, which contains “all included” dhtmlx.js, which can be used instead of separate js files. Including this single file is equal to including all base and extension files at once.
Symptom: “Incorrect XML” message.
Reasons:
Incorrect
XML structure - it may be caused by incorrectly formed
XML tags, or by using some special content (& < > chars) inside the tag values. The simplest way to detect the reason for an
XML error is open the url used for
XML loading in a separate browser window. It will show the error details and exact position of the problematic code;
(
IE specific) Usage of incorrect content type - if you are using dynamic
XML source (generate it by the script), you need to send the data with Content-type:text/xml;
(FF specific) In case of FF the problem may occur because of any whitespace before <?xml declaraton (the declaration must be the first text in the output).
If you are using a dynamic XML source, pay attention to the fact that the output during a stand alone test may not be equal to the output during the usage of the same feed with the component. You can try to use the debug version of dhtmlxcommon to check which urls are used and which xml output was sent during the data loading.