tags:

views:

238

answers:

1

hey guys

i wrote myself a block of jquery codes to auto refresh a div

just want it to reload every 10 seconds . but problem is after the time i specified in my code script going crazy reload every second

    <script>
var auto_refresh = setInterval(function(){
    $(\'#showDIV\').slideUp(\'300\').load(\'movies.php\').slideDown(500);},10000);
    </script>
+2  A: 

I think you have to use setTimeout() and not setInterval()

read the difference between the two here.

Reigel
i love u , that was so smart man thanks alot
Mac Taylor
lol!... I'm glad you solved it. ;) cheers!
Reigel