Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Csaba Kis-Gadó on Aug 27, 2007 18:03
open dhtmlx forum
dhtmlxGridObject > loadXML > callback method begins before loadXML ends

Dear all!

My problem is below:

The dhtmlXGridObject has a metod: loadXML(). I would like to call a
function after loadXML. I have 2 alternatives:
- use the callback parameter
- write this call under the call of loadXML

Both solutions have some attention. The function will start before loadXML ends.
What should I do?
Please help me as soon as possible!

Best Regards
                   Csaba Kis-Gadó
Answer posted by Stanislav on Sep 05, 2007 18:52
>>- use the callback parameter
The callback executed only after incoming XML fully parsed ( except distributed parsing mode )

grid.loadXML(url,function(){
    //any code here
});