This is a migrated thread and some comments may be shown as answers.

Syncronous request

1 Answer 43 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
Andy Macourek
Top achievements
Rank 1
Andy Macourek asked on 26 Jan 2010, 04:57 PM
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

Sort by
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.

Sincerely yours,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
XmlHttpPanel
Asked by
Andy Macourek
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or