Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kurt on Dec 09, 2008 00:25
open dhtmlx forum
How can I get a return value when the grid.loadXML() is executed

I want to get a return value from grid.loadXML()
I want to judge by using the return value.


many thanks in advance..
Answer posted by Support on Dec 09, 2008 01:34
the grid.loadXML is async operation, so it can't return result value ( when command executed, operation still not finished ), but you can use second parameter to catch the loading moment

grid.loadXML(url,function(){
     alert("data was correctly loaded");
});