Hi,
say i have the following code:
var aGrid = new dhtmlXGridObject();
function refreshRow(rowId)
{
aGrid.loadXML(url+rowId, function(){callback(rowId);});
}
function callback(rowId)
{
...
}
refreshRow(1);
refreshRow(2);
refreshRow(3);
refreshRow(4);
refreshRow(5);
If i call refreshRow() 5 times, the callback-function is only called 3 or 4 times.
It seems to be some kind of timing problem, it only occurs if one loadXML is still running and the next loadXML is called simultaniously. I fixed this in an ugly way that serializes the function calls, but this cannot be the final solution.
Any thoughts on that issue are appreciated (except “don’t call it 5 times”, in our asynchronous world this just has to work).