Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by tep on Apr 02, 2008 19:12
open dhtmlx forum
cancel loadxml..

hi,

i just would like to ask if there is a way of cancelling or stopping a loadxml in process..for example when a button is pushed the loadxml will execute..while loading is happening the button is then pushed again..on the second event what i want to do actually is not only execute loadxml, but also stop any running loadxml calls..

thanks in advance..
Answer posted by Support on Apr 03, 2008 04:21
You can get xmlHttpRequest object used by grid as
    mygrid.xmlLoader.xmlDoc

and use its native API, to stop data fetching

    mygrid.xmlLoader.xmlDoc.abort();