jquery Programming Glossary: checktime
jQuery refresh if PHP file echo's 'true' http://stackoverflow.com/questions/9571447/jquery-refresh-if-php-file-echos-true type text javascript document .ready function setInterval checkTime 10000 function checkTime .ajax url 'checktime.php' success function.. .ready function setInterval checkTime 10000 function checkTime .ajax url 'checktime.php' success function refresh if refresh.. code in my header document .ready function function checkTime .ajax dataType 'json' url 'checktime.php' success function data..
jQuery refresh if PHP file echo's 'true' http://stackoverflow.com/questions/9571447/jquery-refresh-if-php-file-echos-true the div to refresh only instead of the complete page script type text javascript document .ready function setInterval checkTime 10000 function checkTime .ajax url 'checktime.php' success function refresh if refresh true location.reload true script.. instead of the complete page script type text javascript document .ready function setInterval checkTime 10000 function checkTime .ajax url 'checktime.php' success function refresh if refresh true location.reload true script EDIT Following the.. EDIT Following the instructions given here I placed the following code in my header document .ready function function checkTime .ajax dataType 'json' url 'checktime.php' success function data if data.refresh true '#tv' .load 'tv.php' setInterval..
|