Categories | Question details Back To List | ||
Error generated during saving data through DHTMLX grid When I save data of DHTMLX grid (via using DHTMLXProcessor's SendData() method) it generates an error alert indiating Error Type:Load XML Description : incorrect XML. And the insertion operation is quite unpreditctable. Some rows are inserted in database while some got skipped from insertion. Error description via "dhtmlxdataprocessor_debug.js" is "Not an XML, probably incorrect content type specified ( must be text/xml ), or some text output was started before XML data" and content of SaveData.aspx page after insertinion are: <?xml version="1.0" encoding="UTF-8"?><data ><action type='insert' sid='1263270979323' tid='2283'/></data> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head><title> Save </title> <script language="javascript" type="text/javascript" src="dhtmlx/dhtmlxcommon.js"></script> <script language="javascript" type="text/javascript" src="dhtmlx/dhtmlxgrid.js"></script> <script language="javascript" type="text/javascript" src="dhtmlx/dhtmlxgridcell.js"></script> <script language="javascript" type="text/javascript" src="dhtmlx/dhtmlxdataprocessor.js"></script> <script language="javascript" type="text/javascript" src="../scripts/CommonScript.js"></script> <script type="text/javascript" src="../scripts/common.js"></script> <script type="text/javascript" src="../scripts/subModal.js"></script> </head> <body> <form name="form1" method="post" action="SaveData.aspx?ICode=A503&PageName=ItineraryDetails&gr_id=1263270979323&c0=1&c1=A503&c2=1%2f16%2f2010&c3=Andorra+La+Vella+Hlpt(Andorra%2520La%2520Vella)(China)&c4=Delhi&c5=Air&c6=0&c7=1%2f16%2f2010&c8=1&c9=&!nativeeditor_status=inserted" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNzgzNDMwNTMzZGQ+4pS+YqyrLB7dxSr6RjS/Sui2Sg==" /> </div> <div> </div> </form> </body> </html> Answer posted by Stanislav (support) on Jan 12, 2010 01:38 It seems that your custom server side code is working incorrectly. After outputting correct xml response it outputs html code of the page , which is not necessary and can produce parsing errors on client side ( most probably request processing is not stopped after xml generation ) |