javascript - How do I make this code refresh every minute? -


how make code refresh every minute?

<script type="text/javascript"> $j(document).ready(function () {      $j('#left-box').load('pages/box.php');  }); </script> 

i want refresh every 1 minute i've tried other stuff cant it

use setinterval follows:

$j(document).ready(function () {      setinterval(function () { $j('#left-box').load('pages/box.php') }, 60000); }); 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -