Categories | Question details Back To List | ||
loadXML error We are currently displaying the data in the grid using the following method call mygrid.loadXML("../filename.xml"); This xml file is created at the server side when a checkbox is selected and the client picks it up and displays it in the grid.Its producing LoadXML error.pls help how to fix it.LoadXML error is generated only when its tested on remote link,but not while the code is run localy on machine. Answer posted by Support on Jan 16, 2009 02:59 The issue can be caused by some timing or incorrect XML generation issues Please check http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Common_Problems_in_Grid.html#grid_art_comprob Answer posted on Jan 18, 2009 21:08 Can u pls say wat u mean by timing error? Answer posted by Support on Jan 19, 2009 01:51 The problem can occurs if you loading data not directly from server side script, but creating temporary XML file. In such case situation possible that XML file not fully saved yet on moment when request for it received. The error will not occur if you are loading data directly from server side script. Still, the most common issue not timing but incorrect content-type - details described in above link. Answer posted on Jan 19, 2009 02:10 its timing issue for sure...any ideas how to resolve it..i think the rest of script is running to load the file,wana keep it looping til the file got created..any clues? Answer posted by Support on Jan 19, 2009 03:04 The best approach is to load data directly through server script Instead of call_some_script_to_create_xml(); grid.loadXML("static.xml") You can use grid.loadXML("some.php") where some.php contains next logic - ask data from DB - form XML data - output it to stdout in such case you will not use static XML file, but will send it directly to client - which will remove any timing related issues. Answer posted on Jan 20, 2009 00:46 Is thr any chances that this problem be created while xml creation,ie encoding problem,maximum no. of columns or special characters?since data is taken from db and xml file is created... Answer posted on Jan 20, 2009 01:15 if so pls help out how to escape special characters.... Answer posted on Jan 20, 2009 04:41 Thought many possibilities,like timing issue,finally it seems that file is not even created and thus showing Error Type:LoadXML =>the file creation process is as follows private void fileCreation(ArrayList nameList)
<div style="height:250px;;width:375px;display: none;" id="myDiv" class="tableContainer" > Can u pls help to fix why loadXML error is thrown in this case.pls help as asap,banging head against wall..
|