We are currently displaying the data in the grid using the f

We are currently displaying the data in the grid using the following method call



mygrid.loadXML(…/filename.xml);



a xml file is created at the server side,when a checkbox is selected the client picks it up and displays it in the grid.Its producing LoadXML errorLoadXML error is generated only when its tested on remote link,but not while the code is run localy on machine.



Its seems to be due to timing error

.Any solution to retrieve d file after knowing for sure,d file got generated?(i.e) i need to keep the js file waitin, b4 it looks for the file,the file will be generated…

a) you can load directly from server side script
b) you can wait response from xml file creation script and load XML in grid only when such response received