Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2
Mohit Kotak (MK)
On 2/13/15, 7:25 AM

Hello Raj,

Try to this code.

<html>

<head>

<title>Refresh or Reload a Page Using JQuery</title>

<script> type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"> </script>

</head>

<body>

<div><input id="btReload" type="button" value="Reload Page" /></div>

</body>

<script> type="text/javascript">

  $(document).ready(function() {

 $('#btReload').click(function() { location.reload(true); }); // RELOAD PAGE ON BUTTON CLICK EVENT.

  // SET AUTOMATIC PAGE RELOAD TIME TO 5000 MILISECONDS (5 SECONDS).

   setInterval('refreshPage()', 5000);

});

     function refreshPage()

     { location.reload(); }

</script>

</html>

I hope it is very useful to you.

Thanks.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/13/15, 7:19 AM
Seen: 866 times
Last updated: 3/16/15, 8:10 AM