Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to refresh a function after a particular time in jsp?

    • 0
    • 1
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 303
    Comment on it

    To refresh a function after a particular time interval to refresh the values on the page. We can do this by using setInterval() function on page load.

    Write the below code where refresh() function will be the function that you want to refresh every 1 minute.

    $(function(){
    setInterval(function() {
                refresh();
                }, 1000 * 60 * 1); 
    });
    

    Hope this will help you :)

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: