which grid loadxml error

hi,



im using “dhtmlxError.catchError(“LoadXML”, myErrorHandler);” to catch loadxml error…however i have 2 grids on my page…when the system catched the error how would i know which grid had an error…for example…i have grid1 and grid2…i place the code “dhtmlxError.catchError(“LoadXML”, myErrorHandler);”…in myErrorHandler() how may i know if the one that has the error is grid1 or grid2…



many thanks again in advance…



If you are using latest dhtmlxgrid ( 1.5 build 80319 ) you can use

dhtmlxError.catchError(“LoadXML”, myErrorHandler);
The array contains additonal data related to error
    erData=[xmlHttpRequest , object]

Second element - dhtmlx object, component which throw error while loading, basically this is pointer to the grid component.