I have a writes data back to the server every 30 seconds using an XmlHttpPanel. I want to have this call be made right when the page unloads. I am trapping for the onbeforeunload. That is not the problem. I am trying to have the page delay while this call is being made. Any suggestions?
1 Answer, 1 is accepted
0
Pero
Telerik team
answered on 29 Jan 2010, 01:39 PM
Hi Andy,
I am not sure if this is possible, but in general you can't stop the currently executing thread with JavaScript to wait for the callback to execute (i.e. delay the unloading of the page so that the callback is executed).
Please do not hesitate to contact us, if you have any other questions. We will be glad to help.