Categories | Question details Back To List | ||
Im working with a grid control(1.5) and dataprocessor defined on it. Im using setTransactionMode function to send ... Im working with a grid control(1.5) and dataprocessor defined on it. Im using setTransactionMode function to send all rows at once. Everithing works fine, but when there are more than 6 rows updated, I got a javascript error: first an Alert box: Error type: LoadXML Description: Incorrect XML then a js error: "The system cannot locate the recource specified." My server-script creates the XML response like this: <?xml version="1.0" encoding="iso-8859-1" ?> <data> <action type="update" sid="106997" tid="106997"></action> <action type="error_hh">Error found at row #7</action> <action type="update" sid="106999" tid="106999"></action> </data> Where "error_hh" is a function that just display an alert(). My code to define dataprocessor is: if (typeof(myDataProcessor_ldp) == "undefined") { myDataProcessor_ldp = new dataProcessor("savehandler_modificar_listado_documentos_proyecto2_pr.php?uid=" + new Date().valueOf() + "&proyectoTB=417&areaTB=" + codigo_area_ldp + "&tipo_proyectoTB=P"); myDataProcessor_ldp.setUpdateMode("off"); myDataProcessor_ldp.setOnBeforeUpdateHandler(validarDatosFila); myDataProcessor_ldp.setOnAfterUpdate(onAfterUpdateLDP); myDataProcessor_ldp.defineAction("error_hh",myErrorHandlerHHLDP); myDataProcessor_ldp.setTransactionMode("post",true); myDataProcessor_ldp.enableDebug(true); myDataProcessor_ldp.init(mygrid_ldp); } else { myDataProcessor_ldp.serverProcessor = "savehandler_modificar_listado_documentos_proyecto2_pr.php?uid=" + new Date().valueOf() + "&proyectoTB=417&areaTB=" + codigo_area_ldp + "&tipo_proyectoTB=P"; myDataProcessor_ldp.init(mygrid_ldp); } Please help me, I dont know what to do with this error. Answer posted by Support on Jun 18, 2008 02:40 >>Error type: LoadXML
>>Description: Incorrect XML Such message may occur only if grid wasn't able to parse incoming XML, the most common reason - incorrect XML response. Can it be that message returned by error_hh may contain some special characters, which can corrupt XML ? To resolve such potential problem you can wrap the content of action in CDATA <action type="error_hh"><![CDATA[ Error found at row #7 ]]></action> If problem still occurs - please provide any demo page|link where issue can be reconstructed ( you can send details to support@dhtmlx.com ) |