Jul 14, 2011, 8:05 AM
[CLOSED] DirectMethod is not working inside window.onbeforeunload for Firefox
Hi:
I need to execute a DirectMethod when the page starts unload, so i had written a code in javascript as follows:
Pls. help me on this.
I need to execute a DirectMethod when the page starts unload, so i had written a code in javascript as follows:
window.onbeforeunload = function(e) {
Ext.net.DirectMethods.RemoveUserCache();
};
this code works fine in IE, but in Firefox it throws error as Communication Failure and the "Ext.net.DirectMethods.RemoveUserCache()" function is not getting executed.Pls. help me on this.
Last edited by Daniil; Jul 18, 2011 at 2:49 PM.
Reason: [CLOSED]