Categories | Question details Back To List | ||
Customizing Invalid XML Error for Data Grid We are using the standard grid for a web application test. Occasionally we get an "Invalid XML" Alerrt when we periodiclyy refresh the data in the grid using the parseXML call.
How can I handle this error more elegantly and stop polling of the server. In otherwords how do i prevent this alert box from coming up, and write code to show what is wrong with the xml and stop polling?
Thanks a lot for your product - it is very cool. Answer posted on May 07, 2007 11:25 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 radyno (Support) on Dec 10, 2014 08:36 To find more precise comments upon this issue, we can offer you read about ajax file uploads progress bar and data grid ajax. |