Results 1 to 1 of 1

Thread: ajax timer

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Location
    Singapore
    Posts
    355

    Post ajax timer

    Hi,

    I'm using javascript to pause and resume ajax timer. i use the button to call my function yet. it wont pause. any one can help ?

    Code:
    <script type="text/javascript">
    function startTimer()
    {
          var timer = $find("<&#37;=Timer1.ClientID%>")
         timer._startTimer();
    }
    function stopTimer()
    {
          var timer = $find("<%=Timer1.ClientID%>")
         timer._stopTimer();
    }
    </script>
    <asp:Timer ID="Timer1" runat="server" Interval="2000">
            </asp:Timer>
    
    asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="javascript:stopTimer()"  />
    Last edited by Waka; Jul 27th, 2010 at 10:14 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width