JQuery and DHTMLx


We are using DHTMLx widgets along with jquery. We are trying to handle server session timeouts, and would like to warn the user that their session is about to time out. We are maintaining a jquery timer to initiate the warning, but would need to reset this timer whenever there is an ajax event. How do I go about listening to dhtmlx ajax events at a global level without having to register a listener to each and every component?

Thanks for any help.

There is no any global event , but you can add one in next way

dtmlXMLLoaderObject.prototype.loadXML_original = dtmlXMLLoaderObject.prototype.loadXML;
dtmlXMLLoaderObject.prototype.loadXML = function(){
return this.loadXML_original.apply(this,arguments);