Hi All…
I have integrated DHTMLXGRID into my web page. I need to populate mygrid using jsarray. I have modified the data.js in the sample section(changed dbName, password, table name…). i have added the following to my web page.
gridQString = “dataValue.js”;
mygrid.loadXML(gridQString );
Its throwing:
ErrorType : LoadXML & Description : IncorrectXML.
Can u give me a solution for the above mentioned problem…?
Thanking you in advance,
Appu
You need to specify format of incoming data, the correct one will be
mygrid.load(gridQString,“jsarray”);
Hi All,
Thanks a lot for your response.
I have made changes as per your suggestions. And the error got cleared. But the web page is loaded with empty resultset. I am attaching my dataValue.js file. Can you give me a solution…?
dataValue.js.zip (1.27 KB)
Which format you are using for data loading, based on your initial code (dataValue.js) , I thinked about javascript, but you are generating XML in your server side code?
If you are using XML code, revert back to previous syntax.
mygrid.loadXML(gridQString );
and check next
- data which outputed in XML provided in UTF encoding ( if it has high ASCII characters , xml will be treated as incorrect one )
- data must not contain < > & ( you need to use CDATA sections , if you need to sent info with such special chars )
- I’m not pretty sure, but your xml may not load correctly in FF, because of empty line before <?xml declaration
dhtmlx.com/docs/products/dhtmlxG … rt_comprob