Hi,
I’ve been using dhtmlxAjax to load data asynchronously:
dhtmlxAjax.get(“http://xxx/yyy/zzz”, myResponse);
Is there a way (javascript call) to cancel the thread executing the request? In many cases this call can take substantial amount of time. I usualy display a pop-up modal dialg saying “Please, wait …” and dismiss it from inside the myResponse() function. Would be nice to have the option to have a “cancel” button on that dialog which kills the thread. (I don’t mean sending another request which kills the process on the server! just kill the client-side thread, like hitting the Stop button in the browser).
Regards,
Plamen
Hello,
you can try to use abort() method:
var loaded = dhtmlxAjax.get(“http://xxx/yyy/zzz”, myResponse);
loader.xmlDoc.abort();