Syncronous request

2 posts, 0 answers
  1. Andy Macourek
    Andy Macourek avatar
    10 posts
    Member since:
    Jul 2009

    Posted 26 Jan 2010 Link to this post

    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?
  2. Pero
    Pero avatar
    1156 posts

    Posted 29 Jan 2010 Link to this post

    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,
    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.
Back to Top