JS Stop Ajax Timer Control __JS

Source: Internet
Author: User
In C # to stop or start the timer is too easy, but this will have to return to the server and refresh the page, even if you use Ajax UpdatePanel, or return, some client operations or do white, such as the display of a layer and disappeared. Using JavaScript can be used to solve the problem. Fortunately, there are two proprietary methods available in AJAX Timer _starttimer () and _stoptimer () the following two client example codes show you how to use both methods:
function Starttimer ()
{var timer = $find ("<%=ajaxTimer.ClientID%>")
Timer._starttimer ();
}
function Stoptimer ()
{
var timer = $find ("<%=ajaxTimer.ClientID%>")
Timer._stoptimer ();
}
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.