Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jun 10, 2009 06:29
open dhtmlx forum
JQuery and DHTMLx

Hello,

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.
Answer posted by Support on Jun 10, 2009 07:01
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(){
             custom_code_for_each_ajax_call();
             return this.loadXML_original.apply(this,arguments);
}