locked
Webmatrix Timer RRS feed

  • Question

  • User-241524179 posted

    how can i reload page every 5 mintes in webmatrix?

    Monday, December 15, 2014 2:04 AM

Answers

  • User-271186128 posted

    Hi msnazo,

    As for this issue, I suppose you could try to use the JQuery setInterval() Methods. Like this:

        <script  type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>    
         <script  type="text/javascript">
             $(document).ready(function() {
                 setInterval("location.reload(true)", 300000);
             });    
         </script>

    Best Regards,
    Dillion

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 16, 2014 6:25 AM

All replies

  • User1759999623 posted

    What do you want to reload every five minutes in the WebMatrix development tool?

    Monday, December 15, 2014 2:51 AM
  • User-271186128 posted

    Hi msnazo,

    As for this issue, I suppose you could try to use the JQuery setInterval() Methods. Like this:

        <script  type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>    
         <script  type="text/javascript">
             $(document).ready(function() {
                 setInterval("location.reload(true)", 300000);
             });    
         </script>

    Best Regards,
    Dillion

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 16, 2014 6:25 AM
  • User-241524179 posted

    Thanks a lot to answer me.

    With this code my Problem solved.

    Tuesday, December 16, 2014 7:55 AM
  • User541108374 posted

    Hi,

    an alternative approach in html would be to add the following to the head section:

    <meta http-equiv="refresh" content="300">

    Grz, Kris.

    Wednesday, December 17, 2014 4:34 PM