I have a chat in my browser game. How can I implement chat updates without rebooting? Tried using jquery+ajax
- failed.
UPD
window.onload = function () { var loader = document.getElementById('chat_t'); setInterval(function () { loader.load(); }, 1000); }
and
$(document).ready(function () { $('#load').click(function () { $(this).load('/game.php?the=chat'); }) });