<script>
$(document).ready(function()
{
setInterval(doAjaxStuff, 500);
});
function doAjaxStuff()
{
/* $.ajaxSetup ({ cache: false }); */
$.ajax
({
url: "../getStatus/"+id,
dataType: 'json',
success: function(json)
{
if(json.status == "ACTIVE")
{
$('#ajaxStatus').html(jason.status);
}
});
}
</script>
//I get refreshed and cause flickering
<p id= ajaxStatus > Refresh Me</p>
<script> $(document).ready(function() { setInterval(doAjaxStuff, 500); }); function doAjaxStuff() { /* $.ajaxSetup ({ cache: false
Share
Try to add a check so you only update if the value has changed.