<? ?>
function execute(vars, div_id) { $.ajax({ url: 'system.php', dataType: "html", type: 'POST', data: "vars="+vars, timeout: 1000, success: function(html){ $("#"+div_id).html(html); } }); } function getWorldActions() { execute('nothing', "world_msg"); setInterval(getWorldActions, 5000); }
Strona się zawiesza po pewnym czasie. Co zrobić, żeby się NIE zawieszała?