Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by gilles on Jan 21, 2010 06:29
open dhtmlx forum
dhtmlxgrid - error if the user click on a link before the xml has finished loading

Hello,

I use smartrendering on a dhtmlxgrid to display data. The loading takes some seconds on my server. But if I click on a link before the xml has finished loading, there is a JavaScript error : LoadXML.
This can by reproduced on your exemple (http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/14_loading_big_datasets/01_50000.html) if you click immediately on a link.

I use Firefox with Firebug and I have this error. Maybe this can help you :
this.xml is null
if (top.tagName.toLowerCase()!=this.x...rows = xml.doXPath(this.xml.row, top)

Is there a way to avoid this error ?

Regards
Answer posted by Alex (support) on Jan 22, 2010 06:32

Hello

yes such an issue can take place. You can try to use the following approach to block error message:

function my_error_handler(type, name, data){

}

dhtmlxError.catchError("LoadXML",my_error_handler);

Answer posted by gilles on Jan 22, 2010 06:44
Thank you very much.
That's exactly what I need