Categories | Question details Back To List | ||
how to know if an loadXML has happened? im planning of catching the loadXML error.. is there a way to know if the error has occured?like events or anything..thanks.. Answer posted by Support on Apr 01, 2008 10:13 You can catch error and prevent error message by using default error handling routine. function myErrorHandler(type, desc, erData){ //custom code can be placed here return false; } dhtmlxError.catchError("LoadXML", myErrorHandler); The array contains additonal data related to error erData=[xmlHttpRequest , object] First element - xmlHttpRequest object, which contain all data requested from server. Second element - dhtmlx object, component which throw error while loading. You can get any additional error info by checking xmlHttpRequest properties (xmlHttpRequest.responseText for example ) Answer posted by Support on Apr 01, 2008 10:14 The moment when loadXML finished loading can be catched by using onXLE event of component. Answer posted by tep on Apr 03, 2008 22:44 Hi, i used function myErrorHandler(type, desc, erData){
i have 2 grids on my page grid1 and grid 2..what im trying to do is when the error occurs i try to reload the grid which caused the error.. hope you can shed light on this.. Answer posted by Support on Apr 04, 2008 01:48 |