Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Appu on Oct 13, 2008 02:15
open dhtmlx forum
DHTMLXGRID

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

Answer posted by Support on Oct 13, 2008 02:40
You need to specify format of incoming data, the correct one will be 

mygrid.load(gridQString,"jsarray");
Answer posted by Appu on Oct 13, 2008 03:07

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...?

Attachments (1)
Answer posted by Support on Oct 13, 2008 03:52
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

http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Common_Problems_in_Grid.html#grid_art_comprob